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 |
Add parameters during time in each row in one column
hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me
what is object?
How many add-ins comes by default with qtp?
In qtp, explain what is keyword driven automation framework?
Am going to QTP testing......but i dont know coding languages like (c,c++,java,etc)and am not having interest in coding .............can i choose testing tools like qtp to learn and get a job in software......please reply me
How do you test DLL files using automation Tool QTP?
Write a QTP script to print all the link names displayed in a web page
what ar the challenges do we face while testing webbased applications using the automation tool qtp or any?
after click on compose mail how can we attached a file in qtp with vbscript code
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
Explain abt the File System Object in QTP with ex