StaffCoder
Playwright

Playwright Practice Exercises

Node.js 24
1 module · 4 challengesSign up
Module 1 of 1 · 4 challenges

Locators & Auto-Waiting

Learn how Playwright finds an element and waits for it: reaching controls by role, label, text and placeholder, chaining a lookup to the card it belongs to, resolving ambiguous matches on purpose, and letting assertions wait instead of pausing.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Ferry Ticket Desk

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers finding every control on a page by its user-facing identity, and letting an assertion wait for a result that arrives late.

Solved in a browser IDE and graded by tests. Sign up to solve

Lantern Festival Stall Map

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers chaining a lookup to the card it belongs to, on a page where every card repeats the same button and field labels.

Solved in a browser IDE and graded by tests. Sign up to solve

Duplicate Signpost Yard

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers resolving a lookup that matches several elements, by the text beside it, by its position, and by an exact match.

Solved in a browser IDE and graded by tests. Sign up to solve

Botanical Glasshouse Directory

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

This problem covers working a directory of repeated cards where names overlap at two heading levels and a control renders as either a button or a link.

Solved in a browser IDE and graded by tests. Sign up to solve

About this path

Learn to write production-style Playwright test suites through hands-on challenges, one concept at a time.

This path starts with Playwright locators and auto-waiting, which every later test depends on. Each challenge gives you a small web app and asks you to write its test suite in TypeScript, so you should be comfortable with basic JavaScript or TypeScript and with reading HTML. No earlier Playwright experience is needed.

Frequently asked questions

4

What will I practice in this path?

1 module: Locators & Auto-Waiting.

How many Playwright exercises are there, and how hard are they?

4 exercises, all easy.

What does this path run on?

Challenges run on Node.js 24.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.