question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Microsoft.Playwright.CLI installs incorrect version of Chromium

See original GitHub issue

Playwright 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
romfircommented, Jul 28, 2021

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 and playwright install installs correct version 901522. Thanks for Your help, I’m closing this issue.

0reactions
avodovnikcommented, Jul 28, 2021

When you updated the reference, did you clean/rebuilt the project before doing install?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found