Assert Does Not Contain Text

Parameters: fullText, element

Description: assertContainsText will do nothing if the expected string/regex is not part of the text content of given element _assertContainsText will log failures to the playback logs if the expected string/regex is part of the text content of given element

Example:

navigateTo("http://demosite.appvance.com/ ");

click(span("Products[1]"));

assertDoesNotContainText(click(link("Clothing"))

Assert Exists

Asset Exists will log the step in the playback logs when the element exists, it will log as a failure if the element does not exist.

Note: Do not use this in an if condition as it does not return any value, and throws an exception if the assertion fails.

The example below and Usage:

Step 2 shows the usage of Assert Exists.

Accessor column shows the Accessor to check with. Any accessor can be used to check its existence on the page or to make some validations based on the search or based on some operations.