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 does you pass optional arguments in qtp?

0 Answers  


How the QTP recognize, handle n reports that a error has been handled by it(QTP) when we perform a recovery scenario in our application n in what manner it will display it in resulting window? Plz help me out.

1 Answers  


How to send QTP scripts to our colleagues?

1 Answers   Virtusa,


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?

0 Answers  






How to get Links count in an web application,without descriptive programming?

8 Answers  


Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.

3 Answers  


hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri

7 Answers  


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

4 Answers   Ordain Solutions,


How to run a test using quicktest professional (qtp)?

0 Answers  


I am in need of some set of QTP FAQ @ interview. Also recently in one of interview portal they asked me how you write the script for Login application which it is web -based and using Descriptive Programming? Without associating the shared object repository?Please i do need this answer very soon? Please respond me soon @ vaisu72@yahoo.com

2 Answers  


I have application it is one digital clock with all minutes and seconds. you have to identify the time to verify weather the time displayed is correct time or not? How do you automate this scenario?

2 Answers   TCS,


Categories