lecture 10 of 200 completed

How Playwright actually runs

A Node.js test runner driving a real browser. Why every line starts with await.

What you'll learn

  • Why every Playwright line starts with await
  • How the test runner drives a real browser
  • What that means for the code you have already written

Before you write anything, you need one picture in your head. Everything else in Playwright follows from it, and people who skip this spend weeks confused about missing await keywords.

A Playwright test is a Node.js program that remote-controls a real browser. Your code runs in one process. Chrome (or Firefox, or WebKit) runs in another. Playwright sends it commands and waits for answers.

That one fact explains the thing you will type most: await.

members only

Keep reading with the full course

The Foundations track and the first 5 lectures of each framework are free. This lecture is part of the paid course, which unlocks every lecture, all three frameworks, and downloads.

See the options →