Skip to content

Prima: spawn playwright-cli through a shell on Windows - #320

Open
DenysKuchma wants to merge 1 commit into
mainfrom
fix/prima-windows-browser-spawn
Open

DenysKuchma wants to merge 1 commit into
mainfrom
fix/prima-windows-browser-spawn

Conversation

@DenysKuchma

Copy link
Copy Markdown
Collaborator

Summary

Fixes prima browser start/stop/clear on Windows (report from hamkorbank).

spawnSync without shell: true can't run .cmd shims, so both playwright-cli and the npx fallback failed with ENOENT — browser start silently fell through to the "no session open" error, and browser stop reported success without closing anything.

On win32 both attempts now run through a shell with quoted arguments (profile paths with spaces survive), and a double launch failure throws instead of being swallowed. Non-Windows behavior is unchanged.

This branch has not been deployed

No deployments
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