SlowMo prevents the page from loading
See original GitHub issueDescription
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:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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
The same issue may still exists: https://github.com/hardkoded/puppeteer-sharp/issues/1897#issuecomment-1093907986