Skip to content

Use playwright-core instead of standalone driver - #390

Merged
YusukeIwaki merged 1 commit into
mainfrom
reassemble_driver
Aug 1, 2026
Merged

Use playwright-core instead of standalone driver#390
YusukeIwaki merged 1 commit into
mainfrom
reassemble_driver

Conversation

@YusukeIwaki

Copy link
Copy Markdown
Owner

Summary

  • replace standalone Playwright driver downloads with version-pinned playwright-core npm installs
  • generate development/api.json from the exact upstream Playwright source commit recorded in npm metadata
  • update CI, contributor instructions, generated examples, and user documentation to use node_modules/.bin/playwright-core
  • remove the obsolete CDN-based development/update_playwright_driver.sh

Why

microsoft/playwright#41518 removed standalone driver publishing and the hidden print-api-json CLI command. Releases after that change can no longer use the CDN/CLI workflow in this repository.

The new API generator resolves playwright-core@<version> to its exact gitHead, sparse-checks out only upstream utils/ and docs/, and atomically updates development/api.json after validating the generated JSON.

This is a prerequisite for #389 and intentionally keeps the repository on the existing Playwright 1.61.1 baseline.

User and developer impact

Node.js and npm are now required. Install the compatible playwright-core version and pass node_modules/.bin/playwright-core as playwright_cli_executable_path. Direct standalone driver downloads are no longer documented or supported.

Validation

  • development/generate_api_json.sh reproduced the committed Playwright 1.61.1 development/api.json without a diff
  • the same script generated and validated Playwright 1.62.1 API JSON, then restored the 1.61.1 baseline
  • playwright-core@1.61.1 reported the expected version and passed spec/integration/browser_spec.rb on Chromium: 2 examples, 0 failures
  • spec/playwright_spec.rb: 2 examples, 0 failures
  • Docusaurus production build completed successfully
  • Bash, JavaScript, YAML, and git diff --check validation passed

The full RSpec matrix is intentionally left to CI because it is slow locally.

@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
playwright-ruby-client Ready Ready Preview Aug 1, 2026 12:25am

@YusukeIwaki
YusukeIwaki marked this pull request as ready for review August 1, 2026 00:58
@YusukeIwaki
YusukeIwaki merged commit cf28795 into main Aug 1, 2026
26 of 29 checks passed
@YusukeIwaki
YusukeIwaki deleted the reassemble_driver branch August 1, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant