BrauzerLab
← Back to missions 26 / 50

`click()` Auto-waits for Actionability

Medium ~120 sec

Playwright’s actionability checks: is the element visible, enabled (not disabled), stable (animation finished)? It waits until all conditions are met, then clicks.

This means that if a button starts out disabled and becomes enabled after some time, you can simply call click() without writing any extra code — Playwright handles the rest.

page is available. Click the Action button.

TASK

Wait, then click the button.

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

test('`click()` Auto-waits for Actionability', async ({ page }) => {
  await page.goto('https://lab.local/mission/click-actionability');
  // ↓ Your code goes below ↓
});
Editor
https://lab.local/mission/click-actionability
Loading...
Results will appear here — press Run or Check.