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
Answer Posted / 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 View All Answers
what are the challenges you have faced while testing web based application using the automation tools ?
How to create scenario selector
What are the types of properties that quick test learns while recording?
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
Explain the views in the QTP GUI?
What is the default object synchronization timeout in qtp?
Give the syntax to import/export xls into qtp.
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
what is meant by Implicit and explicit requirements?
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
How to analyzing test results using quicktest professional?
What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz
What is keyword driven framework?
Which scripting language used by quicktest professional?
What is debugging? How you debug your script?