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.

Answers were Sorted based on User's Feedback



How to perform action on objects, If two objects have the almost the same name ? example : Ob..

Answer / 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

How to perform action on objects, If two objects have the almost the same name ? example : Ob..

Answer / rohit pathak

Just mention all the properties from objects repository, but
if all the properties are same then change one of its
property by which tool can easily able to recognize the object.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

How do you test siebel application using qtp?

2 Answers  


In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).

2 Answers  


examples of user definied functions? how to write user defined functions in qtp9.2?

3 Answers   IBM,


what is main difference between QTP 8.2 AND QTP 9.0/9.2 HOME PAGE?i mean what are extra thing in QTP 9.0 than in QTP 8.2?

1 Answers   Infosys,


WHICH functionalities of QTP used in Banking project?

2 Answers   Tarang, Wipro,






I want to test advanced Java applications what kind of add- ins I have to install?

1 Answers  


what time u r using data driven test in ur app"

6 Answers   Accenture, IBM,


why was automation used in the project?

1 Answers   Google,


Explain how Selenium is different from UFT?

0 Answers  


what is the criteria for choosing test cases for automation? Ex: if you have some 300 test cases, then how many you choose for automation. what is criteria of selecting?

3 Answers   Aricent, Delhi University, TCS,


How to execute a WinRunner Script in QTP?

3 Answers   IBM,


Can anybody help me for vb script in qtp? give me examples for practice plz.

0 Answers  


Categories