Use can use the "index:=0" property along with the innertext



On Mon, Dec 14, 2009 at 5:09 AM, Daim <[email protected]> wrote:

> There are multiple combos of type webElement. I have tried doing the
> following
>
> set B = Browser().Page()
>
> B.Image("index:=8").click
> B.WebElement("innertext:=Apple").click
>
> B.Image("index:=10").click
> B.WebElement("innertext:=Banana").click
>
> The Object Description matches more than one object. The only property
> that is different is the outerhtml
>
> outerhtml:= <DIV class="x-combo-list-item " _nodup="30811"
> viewIndex="1">Apple</DIV>
>
> outerhtml:= <DIV class=x-combo-list-item _nodup="30812"
> viewIndex="1">Banana</DIV>
>
> But as the property value contains inverted commas in it, it is
> difficult for me to use this property. It gives me error message: )
> missing
>
> Moreover, is there any alternative other than the one i mentioned
> above.
>
> --
> 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]<mercuryqtp%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en




-- 
Mallipeddi Sreedhar
215-688-2456
Sent from Dallas, TX, United States

-- 
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

Reply via email to