Suppose there are 100 links in a web page and the number of
links will be changing dynamically from time to time. I
need code such that every time i had to click on the last
link of the web page.
Answer Posted / amarendra kothuru
Below code will work for your case.
' Set a description object to identify links.
Set oDesc = Description.Create()
oDesc("html tag").Value = "A"
' Get a collection of links
Set oLinkCollection = Browser("test").Page
("test").ChildObjects(oDesc)
Set obj=oLinkCollection.Item(oLinkCollection.Count-1)
obj.Click
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
wht type of User defined functions or Java Releated functions Do we write in VB scripting
What is the synchronization point in qtp?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
What VBScript operators, functions, and statements do you use in QuickTest Professional?
what r the main attributes of test automation?
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
How do we handle run-time errors?
What is the script for database check point, bitmapchek point, regular expression ?
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
how to test use the quality control .how to verify the image verification
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com
is it possible to add sheets to excel at runtime
what is object and child object.. explain ..if possible give some example for better understanding ..