Tasks /
Playwright /
Modal dialog
Statement
easy
Modal dialog
The page has an `Открыть` ("Open") button and a modal with text and a `Закрыть`
("Close") button.
Write Playwright tests:
- on load the modal is hidden;
- the `Открыть` button shows the modal;
- the `Закрыть` button hides it;
- `Escape` hides the modal.
Elements: `open`, `modal`, `close`, `modal-text` — via `get_by_test_id`.
AI mentor
The AI mentor is available after you log in: it sees your attempt history and does not spend resources on anonymous requests.
Log in and ask
Hints
1 of 3 unlocked · attempts: 0
Hint 1
What does `hidden` mean for an element, and how does Playwright check that the
modal is hidden?
Hint 2 — unlocks after 1 attempt
Hint 3 — unlocks after 3 attempts