question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SlowMo prevents the page from loading

See original GitHub issue

Description

As soon as SlowMo = 100 is used the page is not loading at all anymore.

Complete minimal example reproducing the issue

using (Browser browser = await Puppeteer.LaunchAsync(new LaunchOptions
            {
                Headless = false,
                Args =  new[] { "--no-sandbox", "--disable-setuid-sandbox" },
                SlowMo = 100
            }))
await page.EvaluateOnNewDocumentAsync(setIsServer);
                        await page.SetRequestInterceptionAsync(true);
                        page.Request += (sender, e) =>
                        {
                            string resType = e.Request.ResourceType.ToString();
                            if (resType == "Image" || resType == "Font")
                            {
                                e.Request.AbortAsync();
                            } else
                            {
                                e.Request.ContinueAsync();
                            }
                        };
string content = await page.GetContentAsync();

Expected behavior:

That the site loads but just with the SlowMo functionality.

Actual behavior:

The site does not render at all.

Versions

  • PuppeteerSharp 1.8.0
  • .NET core 2.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ismaeldcomcommented, Apr 10, 2019

I was going to open a new issue but I think it’s the same problem.

Description

The test in b5dd5aa859825570ef64397e4d2459766e674118 passes well but if you do something more advanced it always fails.

Example

LaunchOptions options = new LaunchOptions {
    Headless = false,
    SlowMo = 100
};
using (Browser browser = await Puppeteer.LaunchAsync(options))
using (Page page = await browser.NewPageAsync()) {
    await page.GoToAsync("https://duckduckgo.com/");
    ElementHandle input = await page.WaitForSelectorAsync("#search_form_input_homepage");
    await input.TypeAsync("Lorem ipsum dolor sit amet.");
}

Expected behavior:

Load duckduckgo and type with delay.

Actual behavior:

The next two errors randomly PuppeteerSharp.NavigationException: 'Navigation failed because browser has disconnected! PuppeteerSharp.WaitTaskTimeoutException: 'waiting for selector '#search_form_input_homepage' failed

Versions

  • PuppeteerSharp 1.14.0
  • .NET framework 4.7.2
0reactions
Sergio1Ccommented, Apr 9, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

SlowMo prevents the page from loading · Issue #716
As soon as SlowMo = 100 is used the page is not loading at all anymore. Complete minimal example reproducing the issue. using...
Read more >
iPhone Slow motion video not playing "slowly"
Hi everyone,. When I record a slow-motion video on my iPhone running iOS 16.5, it doesn't play in slow motion when I view...
Read more >
Slow down browser rendering - javascript
It's just for our developers to see which parts of the page are rendered slowly or are "glitchy". For example when you use...
Read more >
Slow-mo video is not slow motion after uploading to ...
Slow-mo videos are videos recorded in a higher framerate. To make them slower, Photos plays them back at a lower framerate.
Read more >
Sound is distorted and slow-motion-ish when something is ...
Click on start > type in devmgmt. msc in search box, hit enter> right click on the audio drivers from the list of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found