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
Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan
How the exception handling can be done using quicktest professional (qtp)?
Name the different types of recording modes?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
Which functionalities of QTP used in banking project? pls any say answer?
When should I use smart identification?
Why script error occur in between recording in qtp?
How do you delete unwanted results in qtp?
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
How can you give wait up to 10 seconds in qtp?
What are the technologies supported by qtp?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
In qtp, how you can exit for loop?
How you can decide which type of object repository you have to use?
Explain the types of object repositorys in qtp?