Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print variableName
- WScript.Echo variableName
- Sub say(textToSay)
- If talkative Then 'note that if I set global var "talkative" to false, then the whole log is disabled
- print textToSay
- End If
- End Sub
- say "click submit button"
- Broswer("WebSite").Page("Search").WebButton("Submit").click
- say "check for result"
- if not Browser("WebSite").Page("Results").Exist then
- say "results page didn't appear after exist timeout"
- failtest
- else
- say "successfully found results page"
- end if
- result = browser("WebSite").Page("Results").WebElement("Result").GetROProperty("innertext")
- say "result:" & result
- if result = "Approved" then
- Reporter.ReportEvent micPass, "Check for approved", "Approved!"
- else
- Reporter.ReportEvent micFail, "Check for approved", "NOT Approved!"
- End If
Add Comment
Please, Sign In to add comment