The above code check out only if there is any error in
Browser("XYZ").Page("ABC").WebEdit("Location").Set "12"
If there is any error, then it wil display "There is an error" Else it will
"There is no error"
--
Hoks
Woody Allen - "I will not eat oysters. I want my food dead. Not sick. Not
wounded. Dead."
On Thu, Nov 27, 2008 at 2:44 PM, mabobine <[EMAIL PROTECTED]> wrote:
>
> On error resume next
>
> Browser("XYZ").Page("ABC").WebEdit("Location").Set "12"
> Browser("XYZ").Page("ABC").WebEdit("Name").Set "MNP"
>
> If (err.number >0) Then
> msgbox ("There is an error")
> else
> msgbox ("There is no error")
> End If
> -----------
>
> The above code always displays msgbox ("There is no error"), despite
> there is an error on the page.
>
> Need assistance regarding that.
> Regards
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---