BrauzerLab
← Back to missions 14 / 50

Fill the Login Form

Easy ~180 sec

Filling a login form is the foundation of every e2e test. Fill in the email field, the password field, and submit the form.

Playwright’s fill() method clears any existing value and writes the new one. To submit, click the submit button.

The page object is already available. A green success message will appear when the form is submitted.

You can locate fields by label, placeholder, testid, or id — all of them work. Pick one.

TASK

Fill in the email and password, then click the «Sign In» button.

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

test('Fill the Login Form', async ({ page }) => {
  await page.goto('https://lab.local/mission/fill-form');
  // ↓ Your code goes below ↓
});
Editor
https://lab.local/mission/fill-form
Loading...
Results will appear here — press Run or Check.