if there is two login button in your page, how you know that
this login button is correct for login .

Answer Posted / nagesh

If there are two login buttons,then go with index value
using descriptive programming.first we should make sure that
which login button navigate to required page.then give
corresponding index value as property in script as follows.

Broser("BR").page("PG").webbutton("index:=2").click

or

set objbutton=Description.Create()
objbutton("micclass").value="Webbutton"
objbutton("index").value="2"

browser(br).page(pg).webbutton(objbutton).click

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1446


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

1414


banking project description for software tester

7026


How is the Bitmap checkpoint different from Image checkpoint?

627


How can i check items sorted or not in a weblist ? Give me the script for this...

1579






How to test results for qtp ?

789


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2185


How many types of actions are there in quicktest professional (qtp)?

537


What is the difference between local and shared object repository in qtp?

565


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1688


after click on compose mail how can we attached a file in qtp with vbscript code

1616


breef description of batch testing ?

1709


Explain measuring transaction.

586


What ate the Technologies supported by QTP?

648


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1899