hardkoded / puppeteer-sharp

Headless Chrome .NET API
https://www.puppeteersharp.com
MIT License
3.24k stars 431 forks source link

Improve docfx_project/examples/ReuseChrome.md #2645

Closed KyleC69 closed 1 month ago

KyleC69 commented 1 month ago

In the provided example the BrowserFetcher is instantiated using the using clause. In version 18.0 of PuppeteerSharp that class no longer implements IDisposable. This is the code used. IDE:VisualCode v.189.1

  ` var downloadPath = "/home/apollo/Apps/Browser/Chromium";
    var bo = new BrowserFetcherOptions { Path = downloadPath };
    using var browserFetcher = new BrowserFetcher(bo);
    var browser = await browserFetcher.DownloadAsync();`
kblok commented 1 month ago

Thank you for reporting this @KyleC69!