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 to handle the exceptions using the recovery scenario manager in qtp?

0 Answers  


how to display message with out using msgbox function?

5 Answers   AppLabs,


Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


Why a framework is needed?? Plaese post your answers ASAP

3 Answers   ACC, FD, Mphasis,


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,






if numbers are always changing write a script for that

1 Answers   Nous,


What is test object model in QTP?

1 Answers   Crea,


what is the diff b/w assistive and mandatary rules of object repository in QTP???

0 Answers  


How to use output values in qtp ?

0 Answers  


As u told write Libarary files in QTP. Do u use ever oject repositary 0r spy while writing scripts and for which type of testing u prepared test scripts.

1 Answers  


How to Import data from a ".xls" file to Data table during Runtime.

1 Answers  


We have a text file which contains 1 to 100 numeric values sequentially like 1 2 . . 100 Now we have to count them and transfer to XML file by writing a code in qtp.

1 Answers   Cap Gemini,


Categories