08-03-2012, 05:01 PM
hello everyone,
this is my code
it is working fine when i use F11 to run it step by step
but gives fail when i run it using run option?
this is my code
Code:
Browser("Justdial").Page("Justdial").WebEdit("city").Set "Delhi / Ncr"
Browser("Justdial").Page("Justdial").Link("3 Star Hotels").Click
wait(3)
If Browser("Justdial").Page("3 Star Hotels in Delhi,").WebElement("Category").Exist Then
Reporter.ReportEvent micPass,"pass","valid category"
else
Reporter.ReportEvent micFail,"fail","invalid category"
End If
it is working fine when i use F11 to run it step by step
but gives fail when i run it using run option?