assertVisibility
assertVisibility
open
https://sideex.github.io/example/webpage_under_test/button-to-change-color.html
COMMENT
Set the button to be shown
setCSS
id=Button
//button[1]
//button[@id='Button']
css=#Button
visibility:inline
COMMENT
Assert the visibility of the button. The test case will not keep playing if the command fails
assertVisibility
id=Button
//button[1]
//button[@id='locatorButton']
css=#locatorButton
COMMENT
Set the button to be hidden
setCSS
id=Button
//button[1]
//button[@id='Button']
css=#Button
visibility:hidden
COMMENT
The next command is intended to fail to demonstrate the termination of the test case
assertVisibility
id=Button
//button[1]
//button[@id='locatorButton']
css=#locatorButton
echo
This command will not be executed since the test case terminated due to command failure