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



In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep th..

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

In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep th..

Answer / mogal

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

In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep th..

Answer / pushkar1206

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

Post New Answer

More QTP Interview Questions

what r the send key commands in QTP why they r used

1 Answers  


In the website, the protocol has been changed http: to https what you will do? Tell me your approach?

0 Answers  


what is the test object?

1 Answers  


Diff B/w Webserver and Client Server

2 Answers  


Explain more about the Test Fusion Report of QTP?

0 Answers  






Describe synchronization point.

0 Answers  


Where to use Property Let, Property Get, Property Set in UFT

0 Answers  


Explain calling sub procedure.

0 Answers  


What is meant by Step Generator in Qtp How is it used? pls gimme in detail

7 Answers   AppLabs,


Among the 4 capture levels, Complete, Partial, Minimal, None. which one is mostly used?

1 Answers  


tell me QTP standards ?plz

0 Answers   Kanbay,


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.

2 Answers  


Categories