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 / 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 |
Explain the parameter in qtp?
how to retrieve the column headers in database using vbscript statement in QTP
How do u override the meaning of a standard object in QTP?
What is the diff between image and bitmap check point?
What are software testing metrics
Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
Which object repository we use in real time and can we merge 2 object repostiory and how?
what r the send key commands in QTP why they r used
please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.
unique properties of button,edit box, radio button,check box?
how can we merge the object repositories?is ther any option in qtp to merge the object repositories if we have two or three object repositories?