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 is the default add-ins in qtp?
Should have experience in framework means?
can any body give the banking domain concepts/links
what you mean by artifact,milestone...
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
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
Where we can use the synchronization?
How to handle dynamic objects in quicktest professional?
what function you write to do database testing with the help of qtp?
What phases are involved in testing an application in qtp?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
Which recording modes need more memory?
what is the difference between IE & Netscape in web testing on a log in page
Hybrid framework supports Descriptive programming. Is it true?
What is the qtp testing process?