I tried to update the OB, i'm not sure if I did it correctly though.
In an If...Then ... ElseIf statement, can we use Checkpoints or Sync points? When I run my test scripts without being in a If...Then statement, the images and text are seen. If I run the test script with the Checkpoints in an If..Then... the code does not see the images/text checkpoints.
In an If...Then ... ElseIf statement, can we use Checkpoints or Sync points? When I run my test scripts without being in a If...Then statement, the images and text are seen. If I run the test script with the Checkpoints in an If..Then... the code does not see the images/text checkpoints.
Code:
If [Browser("WisdomLogin").Page("Wisdom CTE").Image("Wisdom").WaitProperty "file name", "WelcometoWisdom.gif", 10000] Then
'Login Passed - Logout only appears when the login is successful
Reporter.ReportEvent micPass, "Login", "Login Passed"
ElseIf [Browser("WisdomLogin").Page("WisdomLogin").WebElement("Login Failure.").WaitProperty "innerhtml", "Login Failure", 10000] Then
'Login Failed
Reporter.ReportEvent micPass, "Login", "Login Failed - Bad User ID or Password"
Browser("WisdomLogin").Close
Else
' 'None of the object exist
Reporter.ReportEvent micFail, "Login", "Login Failed. Unknown error"
Browser("WisdomLogin").Close
End If