Assert Contains (assertContains)

Asserts if the full text contains the snipped text. The result is a boolean indicating if the assert failed if the assert type is "Warning" or "FailAtEnd" . It will fail if the assert type is "Fail". It will fail at the end of script execution if the assert type is "FailAtEnd"

Assert Contains expects two strings, so you should use Assert Contains Text (element + text). In case of the select element, AIQ will check the current selected text.

  • Accessor : myVariable

  • Value: """anyString"""

  • JS Action: assertContains(accessor,);

Example