How to identify the objects using descriptive programming
when the object property values are same, i mean in a page
10 objects are there i want to click the 6th object but all
the object property values are same? using descriptive
programming

Answer Posted / abi

If u r going to click on the 6th object, then give the
index value as 5 in the descriptive programming. For
example, if u r trying to clcik on an OK button where in
the same page, u have 10 OK buttons, then

Browser("").Page("").webbutton
("name:=OK","Class:=button","htmltag:=sumbit","index:=
5").click

this will click on the 6th OK button of the page.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the automation metrice in your project?

1835


How to use the object spy in quicktest professional (qtp) 8.0 version?

588


Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1577


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1433


How to open a new test using quicktest professional (qtp)?

617






hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

1855


What are the 3 main stages involved in testing with qtp?

644


Diff b/w test scenario's and test Procedures?

1727


What is the syntax for how to call one script from another?

662


how to test Web application using QTP software

1651


why text area checkpoints cannot used for web applications

1979


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1603


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1580


How many scripts did you have?

1794


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2495