HsacAcceptanceTests.SlimTests.BrowserTest.DoubleClick


This test ensures that we can double click on an element.

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


variable defined: HTML= {{{ <html> <body> <input type='text' id='set-me' value='Bob'/> <button ondblclick='setValue()'>Double Click Me</button> <script> function setValue() { document.getElementById('set-me').value = 'Robert C. Martin' } </script> </body> </html>}}}


script mock xml server setup
add response
<html>
<body>
<input type='text' id='set-me' value='Bob'/>
<button ondblclick='setValue()'>Double Click Me</button>
<script>
function setValue() {
    document.getElementById('set-me').value = 'Robert C. Martin'
}
</script>
</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]
check value of id=set-me Bob
double click Double Click Me
check value of id=set-me Robert C. Martin

script mock xml server setup
stop