HsacAcceptanceTests.SlimTests.BrowserTest.ExecuteScript


This test ensures that we can execute javascript on a page.

We use a mock server running to serve the HTML defined in this page.


variable defined: HTML= {{{ <html> <body> <input type="date" id="dateField"> </body> </html>}}}


script mock xml server setup
add response
<html>
<body>
<input type="date" id="dateField">
</body>
</html>
$url<-[http://127.0.0.1:8000/FitNesseMock] get mock server url

script browser test
seconds before timeout 1
open $url->[http://127.0.0.1:8000/FitNesseMock]
execute script document.getElementById("dateField").setAttribute("type","text")
check value of attribute type on id=dateField text

script mock xml server setup
stop