puppeteer-sharp icon indicating copy to clipboard operation
puppeteer-sharp copied to clipboard

Browser install tool

Open WeihanLi opened this issue 1 year ago • 2 comments

Description

puppeteer provides @puppeteer/browsers to help install browsers, could we support similar functions with a dotnet tool, thoughts?

# Download the latest available Chrome for Testing binary corresponding to the Stable channel.
npx @puppeteer/browsers install chrome@stable

# Download a specific Chrome for Testing version.
npx @puppeteer/browsers install [email protected]

# Download the latest Chrome for Testing version for the given milestone.
npx @puppeteer/browsers install chrome@117

# Download the latest available ChromeDriver version corresponding to the Canary channel.
npx @puppeteer/browsers install chromedriver@canary

# Download a specific ChromeDriver version.
npx @puppeteer/browsers install [email protected]

Additional Information

  • https://pptr.dev/browsers-api
  • https://developer.chrome.com/blog/chrome-for-testing

WeihanLi avatar Jun 27 '24 04:06 WeihanLi

That sounds like a good idea!

kblok avatar Jun 27 '24 12:06 kblok

We have built a package which downloads chrome for testing during build/publish and it doesn't require any system package installation, even on linux. Also it works in readonly file system, like aws lambda.

Hope it helps.

miroljub1995 avatar Mar 10 '25 09:03 miroljub1995