[Question]: "Microsoft.Playwright assembly was found, but is missing required assets." - showing while trying to download browser binaries.
See original GitHub issueYour question
Trying to download browser binaries using playwright.ps1 install
, but it shows Microsoft.Playwright assembly was found, but is missing required assets. Please ensure to build your project before running Playwright tool.
Even after building my dotnet project the result is same as this.
Any kind of help will be apricated, thanks.
Issue Analytics
- State:
- Created a year ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
.net - Cannot install playwright: Couldn't find project using ...
Playwright . This method calls the exe located in the .playwright folder. This folder is copied to the build folder when building the...
Read more >Browsers
Each version of Playwright needs specific versions of browser binaries to operate. You will need to use the Playwright CLI to install these...
Read more >Installation | Playwright .NET
Start by creating a new project with dotnet new . This will create the PlaywrightTests directory which includes a UnitTest1. · Install the...
Read more >Browsers | Playwright .NET
Each version of Playwright needs specific versions of browser binaries to operate. You will need to use the Playwright CLI to install these...
Read more >Use Playwright to automate and test in Microsoft Edge
Use Playwright to automate and test in Microsoft Edge. The Playwright library provides cross-browser automation through a single API.
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
As @gaelj mentioned, adding this to the .csproj file that references playwright will do the trick:
I was building on Windows, copying files in a docker build and attempting to run
pwsh playwright.ps1 install chromium
on Linux and getting the error reported by the OP.Adding
<PlaywrightPlatform>all</PlaywrightPlatform>
solved it.This has also solved the problem for me - it appears to have been introduced in 1.33.0, 1.32 and below were all fine without this entry.