Closed SimonCropp closed 2 years ago
It looks like you need to do
pwsh bin\Debug\net6.0\playwright.ps1 install
I'll investigate why this is necessary.
I have the same problem, any update here in?
@RiadKatby which OS/version/PowerShell/.NET version are you using? It would help us to debug this issue further.
I ran "dotnet tool install --global PowerShell" before running "C:\Code\New folder\PlaywrightDemo> bin\Debug\net6.0\playwright.ps1 install" and my issues are resolved
In addition to @BrandonQA's answer:
dotnet tool update --global PowerShell
👆 Helped in my case
I had the same issue that OP had. I followed the install and update commands that @BrandonQA and @dariusz-wozniak sent over, but didn't fix it. I was able to get it working after installing PowerShell Core from the MS website (Latest version in the time of this reply): https://docs.microsoft.com/pt-br/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2 Cheers!
If you don't want to install the extra PowerShell controls (I did this on my laptop and didn't want to do it on my desktop) you can get away with just installing the playwright CLI
"dotnet tool install --global Microsoft.Playwright.CLI"
then you can install the browsers with that using
"playwright install"
i went with calling this in a ModuleInitializer
Microsoft.Playwright.Program.Main(new[] {"install"});
Eh, still the same issue. When will we ever get something that works outside the box
Eh, still the same issue. When will we ever get something that works outside the box
It needs to be normal slashes instead of backslashes. Please create a new issue instead of reactivating old ones.
It can't be a normal slashes this is windows in powershell and these are standard slashes even the auto complete suggests it
dotnet tool update --global PowerShell
The above Worked well for me. Thanks
Playwright version
1.17.2
Operating system
Windows
What browsers are you seeing the problem on?
Chromium
Other information
net6
What happened? / Describe the bug
following the getting started failes to install run the install script https://playwright.dev/dotnet/docs/intro/
Code snippet to reproduce your bug
Relevant log output
No response