The Then I don't see [subjects] step asserts that one or more named locators are hidden or not attached to the DOM. Each name is resolved from the CSS or XPath selector registry, and the step waits up to 5 seconds for each element to enter the hidden state using Playwright's auto-retrying waitFor. This makes the step safe to use immediately after an action that triggers a closing animation, such as dismissing a modal or collapsing a panel, without needing a manual wait.
Multiple names are accepted separated by commas or and. Every name is checked and failures are accumulated, so the error message lists all elements that are still visible. Both don't and do not are accepted as negation words. As with all selector steps, names must be registered before use. Hidden means the element has display:none, visibility:hidden, zero size, or is detached from the document.
Accepted phrasings
Then I don't see [subject]
Then we don't see [subject]
Then I do not see [subject]
Then we do not see [subject]
Then I don't see [subject], [subject2]
Then I don't see [subject] and [subject2]
Then I don't see [subject], [subject2] and [subject3]
Examples
Then I don't see modal
Then I don't see dropdown, tooltip
Then I don't see overlay
Then I don't see sidebar, overlay and popup
In a real scenario
Scenario: Cookie consent banner disappears after acceptance
Given I define css selectors:
| cookie banner | .cookie-consent |
| overlay | .consent-overlay |
| content | main.main-content |
When I go to "https://example.org/"
Then I see visible cookie banner
And I see cookie banner over content
When I click accept-cookies
Then I don't see cookie banner
And I don't see overlay