I am using example code from Puppeteer-sharp but faced timeout error when calling browser.NewPageAsync(). Then I turned on Devtools and saw the page is crashed in Chromium.
var browserFetcher = new BrowserFetcher(); await browserFetcher.DownloadAsync(); var browser = await Puppeteer.LaunchAsync(new LaunchOptions { Headless = true, Devtools = true }); // page is crashed in Chromium and timeout after 5 mins var page = await browser.NewPageAsync(); await page.GoToAsync("http://www.google.com"); await page.DisposeAsync(); await browser.DisposeAsync(); *PuppeteerSharp version is 4.0.0
browserandpageobjects at the end of execution. Add the respectiveDispose()calls and see if that helps. I faced such issue once as I wasn't disposing mypageobjects.