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

what is the advantages and disadvantages of using functions instead of re usable actions

0 Answers  


Write script to fetch the data from global sheet where row number is 3 and parameter is "text"

3 Answers   Accenture, Thomson Reuters,


To count the no of links present in the yahoo home page i have written the script like this Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile ("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo! India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0

2 Answers  


how to merge object repositories in qtp for n different applications

1 Answers  


what is descriptive.create()in qtp?

4 Answers   IBM,






What is the D/B Test managemet tool and bug trcking tool? Ans send to pbr.qtp@gmail.com

1 Answers   Cap Gemini,


Give me exact application where we should use low level recording?

6 Answers   CTS,


what difference between client and server applications exatly?

1 Answers   Honeywell,


how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..??

2 Answers   DST Global Solutions,


can u please explain what is the exact difference between qtp8.2 and 9.0

0 Answers  


What is recovery scenario manager? When you go for recovery scenario manager?

0 Answers  


Can any body please tell me the steps of keyword driven framework of QTP.

0 Answers   TCS,


Categories