New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(driver): with CWD which contained spaces #17579
Conversation
@@ -1,4 +1,6 @@ | |||
@ECHO OFF | |||
SETLOCAL | |||
IF %PLAYWRIGHT_NODEJS_PATH%x == x SET PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe" | |||
"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0\package\lib\cli\cli.js" %* | |||
if not defined PLAYWRIGHT_NODEJS_PATH ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use all CAPITAL letters for the keywords?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
microsoft does use lowercase in the docs, so it seems better like that: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/if
Let's consider cherry-picking over to 1.26 branch and releasing a python version with it. |
) This PR cherry-picks the following commits: - a5eee6d Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Did manual testing on my Windows machine to verify that it works in a folder with spaces. Also passing a custom Node.js path seemed to not have worked before.
Fixes microsoft/playwright-python#1561
Fixes microsoft/playwright-python#1565