How can we use regular expressions for a table in web page,
each cell in table having unique identification, Now I want
to count number of rows in table and enter data in all
cells of the table?
Answer Posted / ips
intRowCnt=Browser("Google").Page("title:=.*").WebTable(“name:= TTable").RowCount
For r=1 to intRowCnt
‘’ This will loop through each row and tell count of column in each row.
intColCnt=Browser("Google").Page("title:=.*").WebTable(“name:=TTable").ColumnCount(r)
MsgBox intColCnt
for c=1 to intColCnt
Browser("Google").Page("title:=.*").WebTable("WebTable").ChildItem(r,c,"WebList",0).Select strType
or
Browser("Google").Page("title:=.*").WebTable("WebTable").ChildItem(r,c,"WebEdit",index).Set strNumber
Browser("Google").Page("title:=.*").WebTable("WebTable").ChildItem(r,c,"WebCheckBox",index).Set strPreferred
Next
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what function you write to do database testing with the help of qtp?
How will you declare a variable in qtp?
in my application,validation message has in japanise language.how to validate this message is appears properly or not
after click on compose mail how can we attached a file in qtp with vbscript code
How do know the number of browsers opened?
What is recovery scenario in qtp?
Why is Client side image is preferred over server side image?
How to use reporter.report event in qtp ?
How can i check items sorted or not in a weblist ? Give me the script for this...
How to find operating system information using the qtp script?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
How many types of actions are there in quicktest professional?
What is expert view in qtp?
How you can write contexts to text file in qtp?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code