BrauzerLab
← Back to missions 36 / 50

Assert Input Value

Easy ~120 sec

The profile form has an email field — its value is already pre-filled as [email protected]. Your job: assert that field’s value using expect.

Playwright has a dedicated assertion for checking an input’s value property. This method works the same way for fields filled with fill() and for fields that are pre-populated.

The page object is already available. Find the email field and assert that its value is '[email protected]'.

There are several ways to locate the email field — any correct selector is accepted.

TASK

Assert the field value.

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

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