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 |
If there are some browsers opened and I don't how many browsers are open, Now I want to close all the browsers that I don't know how many are opened. What would be Descriptive programming for this in QTP using VB Script..??? Please send your answers.
what is the difference between action and function
11 Answers AppLabs, BirlaSoft, Infosys,
Explain the check points in quicktest professional?
Use of Debug Viewer?
Explain quicktest professional testing process?
is it possible to add sheets to excel at runtime
What is the Limitations of Testing ?
Explain the concept of object repository and how qtp recognises objects?
Explain calling sub procedure.
Suppose U change the script whether it affect the object properties of the object in the object repository
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
Is there a function to find the number of occurrences of sub strings within a string?