In a web page, one web table is present which is dynamic.
In that table one of the column has links with the same
inner text. write a script so that i need to click the
third link.
Answer Posted / sid
Hi All
U can also do this by using GetRowWithCellText method
At First get the row which u got that link in WebTable
Obj=Browser("title:=.*").Page("title:=.*).WebTable("name:= ").GetRowWithCellText("Just give the name which link u wanna click")
Now u got the row no of that particular link in obj
If obj<>0 then
Browser().Page().WebTable().Link("name:= ").click
End If
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why is action split used by qtp?
We stored into the objects OR and then write the scripting
Is any limitation to xml checkpoints?
What is recovery scenario in qtp?
regular expression in qtp standar check point for months from accepting months from january to december only
Explain how Selenium is different from UFT?
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
what QTP Options do you know?
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
How to test the login page in different ways in automation testing and i need code?
tell me abt a time when u had to go above &beyind the call of duty to get the job done
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this