HsacAcceptanceTests.SlimTests.BrowserTest.RetrieveAttributeValue


This test ensures we can retrieve element attribute values.

variable defined: HTML= {{{ <html> <body> <span id="walter" title="That rug really tied the room together.">Walter Says</span> <div aria-label="container"> <img id="myImage" class="styled-img"></img> </div> </body> </html>}}}

script mock xml server setup
add response
<html>
<body>
<span id="walter" title="That rug really tied the room together.">Walter Says</span>
<div aria-label="container">
<img id="myImage" class="styled-img"></img>
</div>
</body>
</html>
$url<-[http://127.0.0.1:8001/FitNesseMock] get mock server url

script browser test
open $url->[http://127.0.0.1:8001/FitNesseMock]
check value of attribute title on id=walter That rug really tied the room together.
check tooltip for id=walter That rug really tied the room together.
check value of attribute class on id=myImage in container styled-img

script mock xml server setup
stop