BrauzerLab
← Back to missions 48 / 50

File Upload

Medium ~180 sec

The upload form contains an <input type="file"> element. Playwright’s setInputFiles method passes the file path directly to the input without opening a file-picker dialog. After selecting the file, submit the form.

This scenario validates correct use of the setInputFiles method — the regular fill method does not work on file inputs.

page is already available — write your code below.

TASK

Upload a file.

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

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