BrauzerLab
← Back to missions 3 / 50

Find a Field by Label

Easy ~90 sec

The login form has two fields: Email and Password. Your job is to find only the Email field and fill it with [email protected].

Playwright can locate a form field directly by the text of its <label>. This approach works without memorising HTML ids and aligns with accessibility standards.

page is already available. Find the right field and fill it in.

TASK

Fill in the «Email» field.

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

test('Find a Field by Label', async ({ page }) => {
  await page.goto('https://lab.local/mission/get-by-label');
  // ↓ Your code goes below ↓
});
Editor
https://lab.local/mission/get-by-label
Loading...
Results will appear here — press Run or Check.