This test ensures that we can right click (i.e. context click) on an element.
We use a mock server running to serve the HTML defined in this page.
script | mock xml server setup |
add response | <html> <body> <input type='text' id='set-me' value='Bob'/> <button oncontextmenu='setValue()'>Right 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 |
right click | Right Click Me | ||
check | value of | id=set-me | Robert C. Martin |
script | mock xml server setup |
stop |