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 / qtp

set odesc = decription.create

odesc("micclass").value = "Link"

set n = browser("xxx").page("xxx").childobjects(odesc)

objcount = n.count
n(objcount-1).click

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the check points can be inserted without recording?

600


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1407


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

609


Can we record an application running on a remote machine using qtp?

728


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

1633






What is Associate Repository in QTP 9.2 ?

605


Have you used xml check point in your project? How?

551


Can U Explain about QTP tool from older version to latest version also its differences?

1521


Why is action split used by qtp?

564


How to write business scripts using object repository with different scenarios

1390


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

2411


What is the file extension of the code file and object repository file in QTP?

605


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1507


What are the ordinal identifiers in web page?

642


What is TOM in QTP?

1806