mirror of
https://github.com/lackeyjb/playwright-skill.git
synced 2026-09-14 16:39:27 +08:00
1.5 KiB
1.5 KiB
Changelog
[5.0.0] - 2026-08-11
Changed
- Updated the skill to the current Agent Skills frontmatter specification.
- Updated the runtime requirement to Node.js 20+ and Playwright 1.62+.
- Replaced the temporary-file executor with a child-process executor that preserves exit codes.
- Added explicit inline execution with
node run.js -eandPW_SCRIPT_DIRsupport. - Reduced helpers to focused browser setup, server detection, headers, cookie banners, and screenshots.
- Modernized examples around accessible locators and web-first waiting.
- Added CI, fixtures, unit tests, contribution templates, and Dependabot configuration.
- Updated GitHub Actions checkout and setup-node to v7.
Breaking changes
- Helpers that duplicated Playwright actions, waits, extraction, authentication, and retries were removed. Use Playwright locators and assertions directly.
- Stdin execution through
run.jswas removed; use a script file or-e. createContext()no longer accepts amobileoption. Use Playwright device descriptors such asdevices['iPhone 15']instead.launchBrowser()no longer passes--no-sandboxunconditionally. It is only added for Chromium when running as root; passargs: ['--no-sandbox']explicitly in other cases.- An empty
PW_HEADLESS=is now treated as unset and falls back to visible mode rather than headless. run.jsexecutes scripts in the caller's working directory instead of the skill directory, so relative paths resolve against the user's project.