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

what are the areas that cannot be tested using an automated tool? list a few

7 Answers  


how to explain a claims and insurance project?

0 Answers  


Please Explain The QTP real Testing process with steps.

4 Answers  


Write a command for setvalue function in a webedit

3 Answers   Wipro,


how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

0 Answers  






Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.

5 Answers   Lehman Brothers, rsystems,


How to replay a script in qtp?

0 Answers  


What is the limitations of BVA?

1 Answers   IBM,


Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot

3 Answers  


can we install qtp on server machine and do automation of application which is installed on client machine.If yes then how? If no then is there any other automation tool for this (client-server) senario.

4 Answers  


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

0 Answers  


I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

1 Answers  


Categories