hardkoded / puppeteer-sharp

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

NavigationException: 'Timeout of 30000 ms exceeded' with Firefox #2758

Open Mbaspfd opened 1 month ago

Mbaspfd commented 1 month ago

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");
kblok commented 1 month ago

Issue confirmed. Taking a look at it.

kblok commented 4 weeks ago

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