[Bug]: Microsoft.Playwright.CLI installs incorrect version of Chromium
See original GitHub issuePlaywright version
1.13.0 (CLI 1.0.2)
Operating system
Windows
What browsers are you seeing the problem on?
Chromium
Other information
dotnet --version: 6.0.100-preview.6.21355.2
What happened? / Describe the bug
playwright install
installs Chromium 888113, but _playwright.Chromium.LaunchAsync()
requires Chromium 901522
Code snippet to reproduce your bug
dotnet tool install --global Microsoft.Playwright.CLI
playwright install
in C# unit test:
_playwright = await Playwright.CreateAsync().ConfigureAwait(false);
Browser = await _playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions
{ Timeout = 5000, Headless = _headless })
Relevant log output
playwright install
Playwright build of chromium v888113 downloaded to C:\Users\romfi\AppData\Local\ms-playwright\chromium-888113
Playwright build of firefox v1271 downloaded to C:\Users\romfi\AppData\Local\ms-playwright\firefox-1271
Playwright build of webkit v1492 downloaded to C:\Users\romfi\AppData\Local\ms-playwright\webkit-1492
Playwright build of ffmpeg v1005 downloaded to C:\Users\romfi\AppData\Local\ms-playwright\ffmpeg-1005
from unit tests:
Microsoft.Playwright.PlaywrightException
Executable doesn't exist at C:\Users\romfi\AppData\Local\ms-playwright\chromium-901522\chrome-win\chrome.exe
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Looks like Playwright Test or Playwright was just installed or updated. β
β Please run the following command to download new browsers: β
β β
β npx playwright install β
β β
β <3 Playwright Team β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Release notes
Chromium 116.0.5845.82; Mozilla Firefox 115.0; WebKit 17.0. This version was also tested against the following stable channels: Google Chrome 115; Microsoft ...
Read more >Playwright (.NET) tries to use different browser versions ...
According to: https://github.com/microsoft/playwright-dotnet/issues/1638#issuecomment-887340857 the workaround is to use dotnet .\bin\Debug\net5Β ...
Read more >How to install and use Playwright CLI on macOS 11
To be able to run Playwright CLI, you will need to install it with Playwright on version 1.6.0-next.160408727976 (a pre-release of version 1.6.0)....
Read more >Chromium - ArchWiki
Chromium is an open-source graphical web browser based on the Blink rendering engine. It is the basis for the proprietary Google Chrome ......
Read more >The copy and copy all options in proxy window fail in Google ...
Cause. This issue occurs due to an upstream bug in Google Chrome and Microsoft Edge based on Chromium. This bug is being tracked....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I thought so, but mb I forgot. Now I manually deleted bin and obj folders, uninstalled CLI tool and removed
ms-playwright
folder, rebuilt and reinstalled CLI andplaywright install
installs correct version901522
. Thanks for Your help, Iβm closing this issue.When you updated the reference, did you clean/rebuilt the project before doing
install
?