This test ensures that is Visible and is Visible On Page are working correctly

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


!define HTML { {{{
<html>
<head>
<style>
p {
    min-height: 5000px;
}
</style>
</head>
<body>
<a style="text-transform:uppercase" href="">somewhere else</a>
<div>A</div>
<p>&nbsp</p>
<div>B</div>
<a style="text-transform:uppercase" href="">my link</a>
</body>
</html>}}} }


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

|script                |browser test           |
|seconds before timeout|1                      |
|open                  |$url                   |
|press                 |HOME                   |
|ensure                |is Visible        |A   |
|ensure                |is Visible        |ELSE|
|reject                |is Visible        |B   |
|ensure                |is Visible On Page|A   |
|ensure                |is Visible On Page|B   |
|ensure                |is Visible On Page|link|

|script|mock xml server setup|
|stop                        |
