Write code for ,We have a web table with rows and columns like
EmpID EName Action
1 ABC Edit Delete
2 XYZ Edit Delete
3 PQR Edit Delete
In the above Table the last column has two links we have to click first link based up on EmpID =2
Answer Posted / mogal
RC = Browser("Browser name").Page("Pagename").webTable("TableName").RowCount
CC = Browser("Browser name").Page("Pagename").webTable("TableName").ColumnCount(1)
Rnum = Browser("Browser name").Page("Pagename").webTable("TableName").GetRowWithCellText(2)
for jLoop = 1 to CC
If Browser("Browser name").Page("Pagename").webTable("TableName").GetCellData(1,jLoop) = "Action" Then
Cnum = jLoop
Exit for
End if
Next
Set ReqLink =Browser("Browser name").Page("Pagename").webTable("TableName").childItem(Rnum,Cnum,"Link",0)
ReqLink.Click
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
Can the user toggle between using Local OR and shared OR for the same action?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...
What is quicktest professional window?
How many number of actions possible in qtp?
How to carry out bit map check points in QTP
What is the file extension of the code file in qtp?
Can we create a qtp test from qc?
What are the advantages of qtp?
What are the check points can be inserted without recording?
How many add-ins comes by default with quicktest professional (qtp)?
How to analyzing test results using quicktest professional (qtp)?
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
what is the hierarchy to use properties in descriptive programming
What are the different types of checkpoints?