Back to all steps
Close modal window
Close an open modal/popup (quiz, lead form, gallery). No parameters needed — it closes automatically: close icon → Escape → backdrop click. Put it after the modal content checks («See») so the window does not cover the following steps.
Usage example
Close an open modal/popup (quiz, lead form, review gallery). No parameters.
Closing runs automatically through the chain: close icon → Escape
key → backdrop click. If there is nothing to close, the step is simply
skipped and the test does not fail.
A typical sequence after a button opens the modal:
- Click —
Take the quiz - I see — text inside the modal
- Close modal window