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 is test object model in quicktest professional (qtp)?

773


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1739


Generic function to search for the unique link in webtable and click on it

2753


How to modify the text checkpoint?

822


What is object repository in qtp?

796


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

735


To which environments does quicktest professional supports?

762


What is post recovery scenario?

1894


What are output values and why they are used ?

836


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1736


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1815


In qtp is it possible to check broken links of a page?

783


how to do the batch testing in test director using manual testing procedure?

2031


How to start recording using quicktest professional?

870


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

903