08-23-2011, 07:16 PM
You are getting the error due to more than one webelement on the page..
U can try this..
get the whole body text of the page using
now you can search for the any of the three errors that u mentioned like
Let me know if u have any query,
Regards,
Ankesh
U can try this..
get the whole body text of the page using
Code:
strBodyText=Browser().Page().Object.body.innertext
now you can search for the any of the three errors that u mentioned like
Code:
if Instr(strBodyText,"text to be searhed")>0 Then
Reporter.....
End IF
Let me know if u have any query,
Regards,
Ankesh