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

in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do

2 Answers  


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

0 Answers   IBM,


actually how many hours per one day we will work on automation(qtp) in real time

1 Answers   Synechron,


Hi All I am installing QTP 8.0/8.2 in my office desktop (WIN XP) but it is not working. Inspite Installion is succesfully done but when i open qtp from programs it opens only first screen of add-in and after that it disappears. But in my other computer at home (winxp) it is working fine. Can you please give the reason, why it is not working in office desktop. DEEPAK SINGH

4 Answers   Satyam,


Tell me Three major differences between QTP & Winrunner?

2 Answers  


does test plan is in test strategy or test strategy is in test plan.

6 Answers   Microsoft, TCS,


Excepton Handling?

0 Answers   Wipro,


PLZ EXPLAIN HOW TO LAUNCHING QTP IN TEST DIRECTOR? Is it possible or not? If No Why we r using qtp Td Combination? plz explain briefly? What is the purpose of TD With QTP?

1 Answers   Wipro,


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

0 Answers   Livetek,


take one example and write vbscript on one web application in qtp? explian descriptive programe with one example?

2 Answers   IBM,


When testing a web application, the url for each page changes, so using QTP how do u handle this scenario. If anyone knows please answer in detail about the whole procedure. Thanks a lot.

3 Answers  


What is the extension of the qtp local repository?

0 Answers  


Categories