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.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →