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


Please Help Members By Posting Answers For Below Questions

Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?

2325


How will you test a stapler?

599


Generic function to search for the unique link in webtable and click on it

2490


The hybrid framework can be implemented for any application. Is it true?

591


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3275






Explain quicktest professional testing process?

564


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

1521


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1480


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1362


how will you load the test cases in ddt?

1598


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

2388


Explain sub procedure of vbscript.

590


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1644


I want to do QTP Certification what is the pattern of Question paper.

1747


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3017