This test ensures that we can keep refreshing a page until a condition is met.
We use a mock server running to serve the HTML defined in this page.
script | mock xml server setup |
add response | <html> <body> <div class="start"> </body> </html> |
add response | <html> <body> <div class="start"> </body> </html> |
add response | <html> <body> <div class="finish"> </body> </html> |
$url<-[http://127.0.0.1:8000/FitNesseMock] | get mock server url |
script | browser test | |
open | $url->[http://127.0.0.1:8000/FitNesseMock] | |
seconds before timeout | 1 | |
repeat at most | 10 | times |
refresh until | css=.finish | is visible on page |
check | repeat count | 2 |
script | mock xml server setup |
stop |