Closed c-kirkeby closed 3 years ago
Do you have playwright and @playwright/test installed? If so, you can remove playwright and execute npm ci
and afterwards npx playwright install
. Then it should work.
playwright install webkit-1516, but the nuget package 1.15.4 need webket-1550, the message when call IPlaywright.Webkit.LaunchAsync throw exception: Executable doesn't exist at C:\Users****\AppData\Local\ms-playwright\webkit-1550\Playwright.exe
playwright install webkit-1516, but the nuget package 1.15.4 need webket-1550, the message when call IPlaywright.Webkit.LaunchAsync throw exception: Executable doesn't exist at C:\Users****\AppData\Local\ms-playwright\webkit-1550\Playwright.exe
Your issue is probably a different one. Did you follow this guide? https://playwright.dev/dotnet/docs/intro
npx playwright install chrome
installs chrome stable, you should either call npx playwright install
as Max suggested above to install chromium (which is used by default) or modify your code to use Chrome stable channel:
inside globalSetup:
const browser = await chromium.launch({ channel: 'chrome' });
in the config:
const config: PlaywrightTestConfig = {
timeout: 60000,
use: {
channel: 'chrome',
...
},
};
channel: 'chrome'
Context:
Code Snippet
Describe the bug
When I try to run a simple spec (before it even gets to the spec) I get the following error:
If I run
npx playwright install
it doesn't seem to install the necessary browser and I receive no output. If I runnpx playwright install chrome
, it doesn't download the version that playwright is asking for and will yield the same error as above when I runplaywright test
:Is there a way to force playwright to download a specific version?