Guest User

Untitled

a guest
Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. print variableName
  2. WScript.Echo variableName
  3.  
  4. Sub say(textToSay)
  5. If talkative Then 'note that if I set global var "talkative" to false, then the whole log is disabled
  6. print textToSay
  7. End If
  8. End Sub
  9.  
  10. say "click submit button"
  11. Broswer("WebSite").Page("Search").WebButton("Submit").click
  12.  
  13. say "check for result"
  14. if not Browser("WebSite").Page("Results").Exist then
  15. say "results page didn't appear after exist timeout"
  16. failtest
  17. else
  18. say "successfully found results page"
  19. end if
  20.  
  21. result = browser("WebSite").Page("Results").WebElement("Result").GetROProperty("innertext")
  22.  
  23. say "result:" & result
  24. if result = "Approved" then
  25. Reporter.ReportEvent micPass, "Check for approved", "Approved!"
  26. else
  27. Reporter.ReportEvent micFail, "Check for approved", "NOT Approved!"
  28. End If
Add Comment
Please, Sign In to add comment