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
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 |
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 |
what is the advantages and disadvantages of using functions instead of re usable actions
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
how to merge object repositories in qtp for n different applications
what is descriptive.create()in qtp?
What is the D/B Test managemet tool and bug trcking tool? Ans send to pbr.qtp@gmail.com
Give me exact application where we should use low level recording?
what difference between client and server applications exatly?
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
What is recovery scenario manager? When you go for recovery scenario manager?
Can any body please tell me the steps of keyword driven framework of QTP.