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
What is checkpoint in qtp?
What are private functions in QTP? How they can be called from the function library?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
Get the count of files of similar types from a folder.
What are the differences between quicktest professional and winrunner?
how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
What are the views available in qtp?
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.
How to test results for qtp ?
Can I change properties of a test object?
In qtp, how you can get the last character from a string?
Do you know how to connect database? Can you tell me the procedures?
Explain building blocks of the bpt framework ?
Explain the concept of object repository and how quicktest professional recognises objects?
What is ObjectParamater?