Skip to content

Conversation

@mxschmitt
Copy link
Contributor

@mxschmitt mxschmitt commented Mar 25, 2025

What is it solving? Before this change Playwright for Python was not able to run on win32-arm64 since we don't publish a wheel on that platform. The install via PIP was failing. In Node.js its already working since Windows emulates all the arm64 instructions. This patch adds a new wheel using a dedicated win32-arm64 driver (contains also win32-arm64 Node.js) in order to make Playwright work there.

Relates microsoft/playwright#35185

This requires a new roll to make the Docker tests pass.

dgozman
dgozman previously approved these changes Mar 25, 2025
@es0m-msft
Copy link

confirmed successful creation and subsequent installation using
python setup.py bdist_wheel
pip install dist\playwright...whl
playwright install chromium
and then running the sample:

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
for browser_type in [p.chromium]:
browser = browser_type.launch()
page = browser.new_page()
page.goto('http://playwright.dev')
page.screenshot(path=f'example-{browser_type.name}.png')
browser.close()

@mxschmitt mxschmitt merged commit f5857df into main Apr 28, 2025
39 of 40 checks passed
@mxschmitt mxschmitt deleted the win-arm64 branch April 28, 2025 14:25
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.

4 participants