HsacAcceptanceTests.SlimTests.BrowserTest.AlertHandlingTest


This test ensures we can deal with alerts.

variable defined: HTML= {{{ <html> <body> <button onclick="confirm('Hello');">Open alert</button> </body> </html>}}}

script mock xml server setup
add response
<html>
<body>
<button onclick="confirm('Hello');">Open alert</button>
</body>
</html>
$url<-[http://127.0.0.1:8000/FitNesseMock] get mock server url

script browser test
open $url->[http://127.0.0.1:8000/FitNesseMock]
seconds before timeout 1
check alert text null
click Open alert
check alert text Hello
dismiss alert
click Open alert
check alert text Hello
confirm alert
check alert text null

script mock xml server setup
stop