Skip to content

Changelog

playwright-byob 0.1.0

New features

  • Add sync and async helpers, launch_chrome() and async_launch_chrome(), for launching Playwright with a persistent Google Chrome context.
  • Add automatic detection for installed Google Chrome and the platform Chrome user data directory on macOS, Windows, and Linux.
  • Add sensible headed Chrome defaults: persistent profile, Default profile selection, no fixed Playwright viewport, maximized window, and removal of Playwright's --enable-automation default argument.
  • Add explicit customization for Chrome executable path, user data directory, profile directory, Chrome flags, and arbitrary Playwright launch options.
  • Add environment variable overrides via PLAYWRIGHT_BYOB_CHROME_PATH, PLAYWRIGHT_BYOB_USER_DATA_DIR, and PLAYWRIGHT_BYOB_PROFILE_DIRECTORY.
  • Add build_chrome_launch_config() for tests, dry runs, and inspecting resolved launch options without starting a browser.
  • Add typed public exceptions for missing Chrome executables, missing Chrome profile directories, and invalid configuration.

Documentation

  • Add README and Zensical documentation covering installation, sync and async usage, defaults, customization, environment variables, and privacy guidance.
  • Add coding-agent guidance documenting privacy rules, development commands, and design preferences for future maintenance.

Testing

  • Add a pytest suite that verifies launch configuration and platform detection without reading real user browser data or requiring Chrome in CI.