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}
pageassertVisiblepageassertNotVisible

Last updated