---
Test
---
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.


!define HTML { {{{
<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>}}} }


|script      |mock xml server setup|
|add response|${HTML}              |
|$url=       |get mock server url  |

|script                |browser test                       |
|seconds before timeout|1                                  |
|open                  |$url                               |
|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                        |


