hi, i am trying to capture "web element" names in a web page, and i written the code like this,,
with Browser("title:=")
with .page("")
.webelement("htmltag:=...").getroproperty("innertext")
end with
end with
////////////////////////////////////////////////////////////////////////////////////
QTP RETURN ERROR like this:
" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object"
ok fine , i need to search another property other than "index"
i use all the properties like class,text,innerhtml,innertext,visible=true,x , y,abs x ,abs y...but qtp returns error .....
in this webpage index is difficult to find? how to solve



hi, i am trying to capture "web element" names in a web page, and i written the code like..

Answer / rangalnrt

with Browser("title:=")
with .page("")
.webelement("innertext:=.*innertext value .*","index:=0").getroproperty("innertext")
end with 
end with

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer

2 Answers   IBM,


anyone can explian about types of "Triggere Events" in QTP

1 Answers  


where the check points are stored ?

3 Answers   IBM,


By default Action1 runs first in QTP. Is it possible to start the run with Action2?

9 Answers   Virtusa,


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1 Answers  


How to Test the mainframe application?(tell me few basic things)

3 Answers  


Get the count of files of similar types from a folder.

1 Answers   Deloitte,


in QTP,how to write a descriptive program for "yahoo" or "gmail" Login page

1 Answers  


How do we call Library Files(.vbs) in the Test Script Thanks in Advance...

6 Answers  


Which scripting language used by quicktest professional?

1 Answers  


hi how could i get installation guide for QTP 9.0 on XP help me for this !!!!!

1 Answers  


Can the mode of object repository be change during run time? Eg. if the mode is per-action during design time can i change it to shared and vice-versa? Any scripting possible?

2 Answers  


Categories