Assertions

assertVisible

To assert whether an element is visible, use the following command that takes the same parameters as tapOn
- assertVisible:
# Same exact parameters as in Tap On View
This command will wait for view to appear if it is not visible yet.

assertNotVisible

To assert whether an element is not visible, use the following command that takes the same parameters as tapOn
- assertNotVisible:
# Same exact parameters as in Tap On View
If a view is currently visible, this command will wait for the view to disappear.

assertTrue

Asserts whether given value is either true or non-empty (or truthy in Javascript terms):
- assertTrue: ${value}
This command is primarily designed to be used in combination with Javascript values. I.e. asserting that text between two views matches:
- copyTextFrom: View A
- evalScript: ${output.viewA = maestro.copiedText}
- copyTextFrom: View B
- assertTrue: ${output.viewA == maestro.copiedText}