From 157c3a62d60d616d14ca47b96db46e603801056d Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sat, 24 Jan 2026 15:23:31 +0100 Subject: [PATCH] docs: add sandbox variables explanation to Examples --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 05ea106..6716c3b 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,8 @@ console.log({ title, url: page.url() }); ## Examples +Variables in scope: `page`, `context`, `state` (persists between calls), `require`, and Node.js globals. + **Persist data in state:** ```bash playwriter -e "state.users = await page.$$eval('.user', els => els.map(e => e.textContent))"