Assertions on elements in a page
1. For All HTML elements on the page
|Element Should Be Visible||Verify that the target element is visible|
|Element Text Should Be||Verify that the string of the target element exactly matches the specified string|
|Element Should Contain||Verify that the target element contains the specified string|
|Element Should Not Contain||Verify that the element does not contain the specified string of characters|
|Checkbox Should Be Selected||Verify that the checkbox or radio button is checked.|
|Checkbox Should Not Be Selected||Verify that the checkbox or radio button is not checked.|
For more details on Element Should Be Visible, please refer to "Frequently Asked Questions about Assertions".
2. For BUTTON, INPUT, SELECT, TEXTAREA, OPTGROUP, OPTION, FIELDSET:
|Element Should Be Enabled||Verify that the element is interactable|
|Element Should Be Disabled||Verify that the element is not interactable|
Even if the element looks like a <button> or a <select> element, these commands will not be displayed if it is actually written as a or a , and CSS is used to adjust its appearance.
3. For INPUT
|Textfield Value Should Be||Verify that the content entered in the text field exactly matches the specified string|
|Textfield Should Contain||Verify that the content entered in the text field contains the specified string|
4. For TEXTAREA
|Textarea Value Should Be||Verify that the content entered in the text area exactly matches the specified string|
|Textarea Should Contain||Verify that the content entered in the text area contains the specified string|
5. For SELECT
An element for selecting from multiple options, which can be called a drop-down list, pull-down menu, list box, etc.
* This may not work well when multiple options are selected, and it will be supported in the future.
|List Selection Should Be||Verify that the option that match the specified string is selected|
|List Should Have No Selections||Verify that nothing is selected with select with "multiple" attribute.|
If the default choice is selected for an element in a selection, it cannot be verified by List Should Have No Selections.
For example, the following screenshot shows a pulldown included in the form to request a demo of Autify, where the Company Size is displayed at the top, is not a No Selections state, but the option Company Size is selected.
If you want to check if the default choices are selected, use the "List Selection Should Be" option instead of the "List Should Have No Selections" option.