HsacAcceptanceTests.SlimTests.BrowserTest.VisibleAndVisibleOnPageTest


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.


variable defined: 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>
<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>
$url<-[http://127.0.0.1:8001/FitNesseMock] get mock server url

script browser test
seconds before timeout 1
open $url->[http://127.0.0.1:8001/FitNesseMock]
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