Back to all steps
Element does not have class
Step fields
1
selector
(text)
2
class name
(text)
In a scenario, fields are joined with
|.Assert the element does NOT have the given CSS class. Format: selector|class_name (without dot).
Example: #submit-btn|disabled — button has no disabled class
Example: #submit-btn|disabled — button has no disabled class
Usage example
Check that an element does NOT have the given CSS class.
Format: selector|class_name (without the dot)
Examples:
#submit-btn|disabled— the button is not disabled.sidebar|collapsed— the sidebar is expandedbody|modal-open— the modal is closed