Try this:-
If
Browser("title:=ALPHA").Page("title:=ALPHA").WebButton("outerhtml:=<BUTTON","class:=buttonTd","Button
title:=ABCD", "onclick:=javascript:getNextWorkItem_local2()","
PEGA_VERSION:=HTMLPROPERTY"," alt:=ABCD>Go</BUTTON>").Exist Then
MsgBox "Correct"
End If
I think that you needed to split your properties into their relevant parts
Neville
On Monday, 2 December 2013 03:05:41 UTC, Vineet Sharma wrote:
> Hi, i'm using descriptive programming to identify the webbutton using
> unique property as outerhtml.
>
> The value of outerhtml property is follwing:-
>
>
> <BUTTON class=buttonTdButton title="ABCD"
> onclick=javascript:getNextWorkItem_local2() PEGA_VERSION="HTMLPROPERTY"
> alt="ABCD">Go</BUTTON>
>
>
> Now if i use above property value as following, then QTP thows a syntax
> error:-
>
>
> *If
> Browser("title:=ALPHA").Page("title:=ALPHA").WebButton("outerhtml:=<BUTTON
> class=buttonTdButton title="ABCD"
> onclick=javascript:getNextWorkItem_local2() PEGA_VERSION="HTMLPROPERTY"
> alt="ABCD">Go</BUTTON>").Exist Then*
>
> * MsgBox "Correct"*
>
> *End If*
>
>
> So my question is that i cannot use outerhtml property value in this case
> to identify the button object ?
>
>
>
>
> Regards,
> Vineet
>
>
>
--
--
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
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.