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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is throw Object?

1562


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

5519


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

2491


What are the advantages of parameterization ?

598


Can we record an application running on a remote machine using qtp?

723






How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3443


I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

1424


How to find the difference between 2 dates in qtp?

585


What is action?

577


Output values? i want a practical example

1309


I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1587


what are the limitations of smart identification in qtp 9.0

1930


in a web page How to check and display a particular word from a paragraph?

2043


When ‘option explicit’ keyword is used in qtp?

750


How to start recording using quicktest professional?

608