In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.
Answers were Sorted based on User's Feedback
Answer / swat
you can also try this : Using childitem method of webtable :
Set Table = Browser("").Page("").Webtable("")
Row_cnt = Table.RowCount
for i = 2 to Row_cnt
If trim(lcase(Table.getcelldata(i,3))) = "Sandeep" Then
Table.childitem(i,3,"Webcheckbox",0).Set "ON"
End If
Next
Is This Answer Correct ? | 2 Yes | 0 No |
RC = Browser("Browser").Page("Page").WebTable("html tag:=TABLE").RowCount
RC = Browser("Browser").Page("Page").WebTable("html tag:=TABLE").ColumnCount(1)
RN = RC = Browser("Browser").Page("Page").WebTable("html tag:=TABLE").GetRowWithCellText("Sandeep")
For j = 1 to CC
If Browser("Browser").Page("Page").WebTable("html tag:=TABLE").GetCellData(RN,j) = "Sanddeep" Then
CN = j
End If
Next
Set OExpBox = Browser("Browser").Page("Page").WebTable("html tag:=TABLE").ChildItem(RN,CN,"WebCheckBox",0)
OExpBox.Click
Is This Answer Correct ? | 1 Yes | 0 No |
Set obj=description.Create
obj("micclass").value="webcheckbox"
Set obj2=browser("Browser").Page("Page").childobjects(obj)
rw=browser("Browser").Page("Page").WebTable("Table 1").RowCount
For j=1 to rw
b=browser("Browser").Page("Page").WebTable("Table 1").GetCellData(j,3)
If b="N" Then
obj2(j).set "ON"
End If
next
3= Sandeep column number
try this and let me know. thanks
Is This Answer Correct ? | 0 Yes | 0 No |
what r the send key commands in QTP why they r used
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
what is the test object?
Diff B/w Webserver and Client Server
Explain more about the Test Fusion Report of QTP?
Describe synchronization point.
Where to use Property Let, Property Get, Property Set in UFT
Explain calling sub procedure.
What is meant by Step Generator in Qtp How is it used? pls gimme in detail
Among the 4 capture levels, Complete, Partial, Minimal, None. which one is mostly used?
tell me QTP standards ?plz
Hi, Am trying to download QTP 8.2 version.its not supporting Windows Vista.Can you please help me out from this.Which QTP version supports this. Thanks in Advance.