Closed alethcoe closed 3 years ago
This is caused by https://github.com/microsoft/playwright/issues/7741
executing playwright install
without the npx
should fix it.
I didn't run npx, you can see in the first line of my traces from my powershell i was running, playwright install without npx. This should have been using the playwright cli installed through dotnet tools. We are running into the same behavior in windows docker containers.
Whats your output of Get-Command playwright
in PowerShell? Seems like its using the wrong Playwright CLI.
Thank you for your help. Yes It was pointed at a previous python version of playwright.
I moved my environment variable up to put dotnet ahead of python and it works now. Closing as it was my error due to other language cli taking precedence.
@mxschmitt I'm reopening this as I'm trying to upgrade to v1.17 and no matter what I do it doesn't download the correct chromium version.
My Tools installation
I cleaned the ms-playwright folder and is still downloading the older version
My apologies, after reading this again carefully I remembered that I was upgrading from .net 5 to .net 6 and I forgot to clear previous builds if anyone has the same issue, just run this command from the repo root folder to clear all bin and obj folders:
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }
Playwright version
1.12.0
Operating system
Windows
What browsers are you seeing the problem on?
Chromium
Other information
On windows 10
What happened? / Describe the bug
trying running playwright install but when I would run playwright it could never find Chrome. If I blew away my cached browsers it would download them but the wrong versions.
If I rename the version of the folder it works but if I ever reinstall browsers I have to go do it again.
Code snippet to reproduce your bug
Relevant log output