06-26-2012, 10:11 AM
Hi,
try the below code it might help u 2 compare the text displayed on screen and then show the result.
Let me know in case of any help required.
Regards,
Sankalp
try the below code it might help u 2 compare the text displayed on screen and then show the result.
Code:
vs_displayText=Browser("Delta - Book a flight").Page("Delta - Book a flight").webelement().GetRoProperty("innertext")
if Instr(1,vs_displayText,<text u want to match>,1)>0 Then
Reporter.ReportEvent MicPass,"Confirmation',"Confirmation message displayed"
else
Reporter.ReportEvent micFail,"Confirmation","Confirmation message not displayed correctly"
EndIF
Let me know in case of any help required.
Regards,
Sankalp