Skip to main content
app is the portable surface: every method exists on every platform. What each one does is the engine’s to implement; the runner owns the timeouts and the origin policy.
No App method takes a timeout option. Each budget is additionally capped by the remaining test timeout.
clearState inside a serial group destroys the shared state the group depends on. Use it in beforeEach of an ordinary group instead.
Once any Secret has been filled, pixels are withheld from the model and from agent.assert evidence for the rest of the session. This includes later tests in a serial group that shares that session. app.screenshot() fails with POLICY_DENIED before capture and creates no artifact. Masking secure fields cannot hide a secret the app echoes elsewhere on screen. Browser-only operations (routes, cookies, dialogs, frames, downloads) live on the web fixture the Playwright engine contributes; device operations live on device. See the Playwright and agent-device references.

screen and Locator

Playwright

Config

Errors