How to perform action on objects, If two objects have the
almost the same name ?

example :
Object 1 : "Entry of Items"
Object 2 : "Items"

Whenever I ask QTP to perform an action on Object 2 it
performs action on Object 1.

Note: The two objects are present in an Oracle Application
tree.

Answer Posted / manjunatha

Just u can use Location or Index ordinal identifier. Then
QTP easily identified the object.
EX: B().P().webbutton("name:=Entry of
items","Location:=0").click
OR
B().P().webbutton("name:=Entry of items","index:=0").click

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does mean by Scope of Automation?n How we defined it?

1575


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1446


Explain the concept of object repository and how quicktest professional (qtp) recognises objects?

609


whare exactly we have to use functions and sub routain

1846


how to create flat file datasubmission in qtp

1903






Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance

1525


How may types of defects identify application or your currently working application?pls give me answer..

1515


What Folder Structure following in Keyword Driven Frame work?

2285


What are the different types of recovery operation?

553


What is QTP scenario.

1734


What are the views available in quicktest professional?

563


What is quicktest professional window?

561


how do i know how to use tools

1453


How to test background color and dynamic images during run time can you put the check point for moving objects?

1447


How do you convert manual test cases to automated test cases?

583