HsacAcceptanceTests.SlimTests.BrowserTest.CheckVisibleInContainers



Saving page source should not reset search context, even if iframe is present

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


variable defined: HTML= {{{ <html> <body> <iframe src="test.html"></iframe> <div id="div1" aria-label="container"> Hello </div> Bye bye </body> </html>}}}


script mock xml server setup
add response
<html>
<body>
<iframe src="test.html"></iframe>
<div id="div1" aria-label="container">
Hello
</div>
Bye bye
</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]
ensure is visible Bye bye
ensure is not visible Bye bye in container
show save page source FitNesseMock.html
ensure is not visible Bye bye in container
set search context to container
reject is visible Bye bye
show save page source FitNesseMock.html
reject is visible Bye bye

script mock xml server setup
stop