Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
After Login, need to check if correct
#7
Not Solved
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.

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
Reply


Messages In This Thread
After Login, need to check if correct - by mv8167 - 04-15-2011, 02:44 AM
RE: After Login, need to check if correct - by mv8167 - 04-15-2011, 11:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,337 07-09-2014, 10:43 PM
Last Post: hhamilton
  Unable to Click on Login Button Paurav 1 3,278 07-03-2014, 05:27 AM
Last Post: supputuri
  for help.Run a test to login,and then it didn't jump to another page maosilu 0 2,684 11-01-2013, 01:27 PM
Last Post: maosilu
  The recorded text output not appear on the correct row on the results datatable trance07 0 2,284 09-25-2013, 08:05 PM
Last Post: trance07
  Best method to test Login validation defcon3 2 3,615 05-29-2012, 04:02 PM
Last Post: defcon3

Forum Jump:


Users browsing this thread: 4 Guest(s)