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
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
How can we conduct U-I Testing by using QTP??????
What is QTP scenario.
What are the challenges you faced during you entire life automation ?
What is the use of text output value in quicktest professional?
Explain about the test fusion report of quicktest professional?
Approach for Installation,comaptibility,system testing
How to test results for qtp ?
How can get count of list box?
Explain different type of event trigger option.
How to start recording using quicktest professional (qtp)?
Can we run multiple QTP scripts one after the other without manual intervention? How?
What is action split and the purpose of using this in qtp?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.