BrauzerLab
← Back to missions 2 / 50

Find by Text

Easy ~90 sec

The navigation has four links: Home, Products, Contact, and About Us. Your target is the «Products» link only.

Playwright can find an element by its visible text — no need to know the HTML structure.

page is already available. Find the right link and click it.

Because the page has more than one link, make sure you match the text exactly.

TASK

Click the «Products» link.

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

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