BrauzerLab
← Back to missions 1 / 50

First Click

Intro ~30 sec

Welcome to Playwright! Every automation step has two parts: find the element (locator), then perform an action (click/fill/…).

The browser on the right has a button labelled «Buy». Your job is simple: find it and click it.

The page object is already available — write your code in the editor below.

Playwright offers several different ways to click an element. All of them will pass this mission — there is no single correct answer.

TASK

Click the «Buy» button.

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

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