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 / kiran
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-1).click
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
Which environments are supported by hp qtp?
What is recovery scenario manager? When you go for recovery scenario manager?
Can we run multiple QTP scripts one after the other without manual intervention? How?
after initiating one project for testing, when exacltly QTP tester role starts?
Why qtp always start action1 and does not start action?
How to capture a window in QTP?
Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain
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?
Are Shared ORs read-only?
Why do we use breakpoints in QTP?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
Can we run test with out adding object in object repository? How it is possible?
Why to use descriptive programming?