CHANGELOG
Changelog
v0.9.1 - 2026-07-10
Added
Browser.new-contextnamed options that emulate a device or environment across every page in the context:viewport,user-agent,device-scale-factor,is-mobile,has-touch,reduced-motion,color-scheme, andlocale. Only the options you pass are sent; the rest keep Playwright's defaults.X::WWW::Playwright::SidecarExitedexception. When the sidecar process exits before answering, every in-flight call is broken with this error instead of hanging.
Changed
Renamed the setup script from
bin/installtobin/www-playwright-setup, and updated the missing-dependency and missing-browser error messages to point at it.
v0.9.0 - 2026-06-24
Added
Node sidecar (
resources/sidecar/sidecar.mjs) that imports the officialplaywrightpackage and speaks newline-delimited JSON-RPC 2.0 over stdio, with a handle registry mintingkind@Nids for live objects.pingtransport verb returning"pong", pluslaunch,close, and process-exit cleanup that closes the browser.WWW::Playwright::Sidecartransport: spawns the sidecar withProc::Async, correlates responses byidthrough a pending-promise map, and supports concurrent in-flight calls.Node binary resolution from
PATH, overridable byPLAYWRIGHT_NODE, with a clear error when absent.X::WWW::Playwrighttyped exceptions built from the JSON-RPCerrorobject and rethrown on the awaiting side.Sidecar stderr capture into an optional debug log gated by
PLAYWRIGHT_DEBUG.Browser, context, and page lifecycle:
launch(:headless),Browser.new-context,Context.new-page,Page.goto, andcloseat each level.Locator-first API:
Page.locator($selector)returning aLocator, with chaining viaLocator.locator.Locator actions:
click,fill,type,press,check,uncheck,select-option,hover.Locator queries:
text-content,inner-text,get-attribute,input-value,count,is-visible,is-enabled,is-checked.wait-for(:state)exposing Playwright auto-waiting.Page.urlandPage.titlereturning the current URL and document title.Diagnostics:
Page.screenshot(:path), andContext.start-tracing/stop-tracing(:path)wrapping Playwright tracing.Install tooling:
bin/installrunningnpm installandnpx playwright install chromium, with the sidecar script andpackage.jsonshipped as META6resourcesresolved at runtime via%?RESOURCES.Sidecar dependency resolution that installs npm deps into the directory the sidecar resolves
playwrightfrom at runtime, working from both a repo checkout and a zef-installed dist.mkdocs documentation under
docs-src: architecture, wire contract, getting started, action and query references, diagnostics, install, API reference, and troubleshooting pages.