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

set odesc = decription.create

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

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

objcount = n.count

browser("xxxx").page("xxxx").link("index:="&objcount).click

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

1943


Explain QTP using different development techniques ?

542


what is output value in QTP and how it can be used in automation testing

1440


How smart identification works in qtp ?

581


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

6331






Give me some real time point of way where exactly we can conduct audits?

1503


Explain the types of object repositorys in qtp?

579


Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version

1413


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1557


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1531


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1701


What is expert view and keyword view?

629


assume i have few url link how will i dynamically call then using descriptive programming?

1605


In qtp is it possible to check broken links of a page?

591


What is environment variable in qtp and why to use it?

551