BrauzerLab
← Back to missions 23 / 50

Wait for Visibility

Medium ~180 sec

One of Playwright’s most powerful features is this: action methods like click(), fill(), and check() automatically wait for the element to be visible, enabled, and ready for interaction before performing the operation. You never need to write an extra waitFor* call.

This mechanism is called actionability checking — Playwright only executes the action once the element is ready.

page is available. In the browser on the right there is a Confirm button. Simply click it — no waiting code required.

TASK

Click the «Confirm» button (no waitForSelector needed).

Provided for you
import { test, expect } from '@playwright/test';

test('Wait for Visibility', async ({ page }) => {
  await page.goto('https://lab.local/mission/auto-waiting');
  // ↓ Your code goes below ↓
});
Editor
https://lab.local/mission/auto-waiting
Loading...
Results will appear here — press Run or Check.