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
what is test scheduleling?
What test you perform mostly? Regression or retesting in your testing process?
How to modify object property in qtp ?
Explain the new feature of UFT regarding the export of test results?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Difference between action & Reusable action?
What is a quick test professional?
What is contained in the object repository?
how to prepared for first for the first interview?
What are the different types of functions available in qtp and explain ?
In qtp, explain what is crypt object
What does it mean when a check point is in red color? What do you do?
Hi Friends, How many types of Data Bases available in market... What is the diff. while using Syabase and Oracle in a Project... ? and what is the main diff. of Syabase and Oracle databases... ? Thanx in advance..
what type of automation is follwed in the project?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet