The "contains" and "does not contain" Assertion Types
Many times, you'd like to find whether or not an element in your application or website contains a certain element, word, or number instead of something exact. The "contains" and "does not contain" assertion types make that easy.
Using the "contains" Assertion
- Click the "Add Assertion" link in the mabl trainer.
- Click on the element that you want to include in your assertion.
- Examine the "Assertion type," which will be "equals" by default.
- Click the dropdown menu and change the type to "contains," examining the result.


- Add to or edit the Expected Value box, if applicable.
- Click "Save".
- Continue with your training session, if applicable.
Using the "does not contain" assertion"
- Click the dropdown menu and change the type to "does not contain," examining the result.
- Add to or edit the text box, if applicable.
- Click "Save".


- Continue with your training session, if applicable.
Updated 4 months ago
Did this page help you?