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

Answers were Sorted based on User's Feedback



How to identify the objects using descriptive programming when the object property values are same,..

Answer / 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

How to identify the objects using descriptive programming when the object property values are same,..

Answer / narayana

by assigning index value to each object, we can make qtp to
identify the object uniqely

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More QTP Interview Questions

How to Compare two database tables by using QTP?Please give me code details.

1 Answers  


What is difference between design time and run time data table?

0 Answers  


in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,


hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me

3 Answers  


How can i find out any "text's" coordinates in excel sheet For example: I want to know the coordinates of "F" Column in the excell sheet While recording when i clicked on F column it is showing the coordinate values 385,9 but with out recording how can i find out them Suppose i want to clik on "H" column writing the script like this Window("Book1").WinObject("Book1").Click (...........) Here I Dont know what (x y )values should i enter Please any one can help me?

1 Answers   Livetek,


Is there anyone can tell me where I can download free or trial QTP? I tried HP website, it was not there anymore. If someone know, pls send me URL. Tks...

1 Answers  


Can we directly automate testscripts accrdoing to requirements? WHY ?

1 Answers  


What type of error u will get if u have not installed java add in in java project? what is the error name ?

1 Answers   Verizon,


Can any one send me the QTP Basic Coding Samples?

0 Answers  


when to start the automation?

2 Answers   Accenture,


Can you import and export data from XLS and how?

4 Answers  


What is output value? How many types of output values are there in qtp?

0 Answers  


Categories