puppeteer-sharp
puppeteer-sharp copied to clipboard
NavigationException: 'Timeout of 30000 ms exceeded' with Firefox
When trying to open any site in Firefox I always get the Exception TimeoutError: Navigation timeout of 30000 ms exceeded. Although a site is fully loaded.
Puppeteer-sharp v19.0.2 and .NET 8.0
My code:
var browserFetcher = new BrowserFetcher(SupportedBrowser.Firefox);
await browserFetcher.DownloadAsync();
var launchOptions = new LaunchOptions()
{
Browser = SupportedBrowser.Firefox,
Headless = false,
DefaultViewport = null
};
var browser = await Puppeteer.LaunchAsync(launchOptions);
var page = (await browser.PagesAsync())[0];
await page.GoToAsync("https://google.com");
Issue confirmed. Taking a look at it.
Unfortunately. It seems that it's an issue on Firefox. And they won't fix that on CDP. You'll have to wait till I implement WebDriver BiDi support.
See upstream issues https://github.com/puppeteer/puppeteer/issues/13018