Learn Auto Wait • Explicit Waits • Network Waits • Popups • Multiple Tabs
This page intentionally creates delayed elements, delayed text, loaders, URL changes, API calls, downloads and multiple browser windows.
Auto Waiting locator.waitFor() waitForURL() waitForLoadState() waitForRequest() waitForResponse() waitForEvent() context.waitForEvent('page')Click "Create Delayed Button". A new button will appear after 3 seconds. Playwright can automatically wait when an action is performed on a locator.
The Submit button becomes enabled after 4 seconds. Useful for understanding Playwright actionability checks.
Use this section to practice waiting for an element to become visible or hidden.
Attached means the element exists in the DOM. Detached means it has been completely removed from the DOM.
Click the button. The status text changes after 3 seconds. Practice: expect(locator).toHaveText()
Clicking the button starts navigation. After 3 seconds the URL changes to: #dashboard
Click Load Data. Loader appears and disappears after 4 seconds. Good practice for: locator.waitFor({ state: 'hidden' })
Employee records are added after 3 seconds. Useful for assertions and element wait practice.
| Name | Role | City |
|---|
This button calls a public API. Use Playwright to start waiting for the request/response BEFORE clicking the button. Internet connection is required for this section.
No API Data
Practice waiting for the download event.
This section is only for understanding a hard-coded wait. In real automation, condition-based waits are preferred.
Every browser tab/window is represented as a Playwright Page object. Practice: context.waitForEvent('page') page.waitForEvent('popup') context.pages() bringToFront() close()
Open Playwright website in a new tab.
Open TutorialsNinja in a new tab.
Opens a custom SpeedwayTech popup without requiring another HTML file.
The SpeedwayTech popup contains:
You can capture the popup using: page.waitForEvent('popup') and then perform actions on the returned Page object.
This popup opens after 3 seconds. Useful for understanding event waiting.