microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

Could you provide an MSBuild option to skip the browser install #1292

Closed javiercn closed 3 years ago

javiercn commented 3 years ago

Would it be possible to provide an MSBuild property to avoid installing browsers? Something around here like PlaywrightDisableBrowserInstall or similar.

Building test projects on our CI agents causes the install to trigger and increases our build failure rate.

Thanks in advance!

kblok commented 3 years ago

Sounds like a good idea

Jojoshua commented 3 years ago

Would like to see this for all playwright configuration options such as

PLAYWRIGHT_BROWSERS_PATH PLAYWRIGHT_DOWNLOAD_HOST ...ect

pavelfeldman commented 3 years ago

This is now fixed, browser installation is now a manual step, by default Playwright comes w/o browsers: https://playwright.dev/dotnet/docs/intro