I have tried this but failed
set B = Browser("name:=ABC").Page("title:=ABC")
B.WebElement("innertext:=Apple", "innerhtml:=Apple", "html tag:=DIV",
"height:=20").click
It always say to use the unique property, although innertext and innerhtml
is always unique
*
One thing to Notice: *
The test ran successfully when I did the first time. It executed very well
as following
B.WebElement("innertext:=Apple").click
B.WebElement("innertext:=Mango").click
B.WebElement("innertext:=Banana).click
But as soon as I closed it, and ran it again, it started asking me to
provide unique property.
Hope anyone can guide me regarding this.
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en