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
How to add verification steps to tests?
How many types of recording modes in qtp?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
What is the use of an object spy tool in qtp?
what is impact analysis on regression testing?
i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
How will you report the bug and explain the defect tracking sheet you handled?
What is the difference between a Function and Action in QTP?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What are the different types of recording modes in qtp? Which will be used when?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
How to check bitmap output value?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
what is stepin & stepout?