Puppeteer-sharp-extra icon indicating copy to clipboard operation
Puppeteer-sharp-extra copied to clipboard

Performance Issues in Headless Mode

Open Wuerzburger opened this issue 4 years ago • 2 comments

Hello, I'm using PuppeteerSharpExtra in a C# project. If I run with headless = false everything is working just fine. But when I switch to headless = true the performance drop in a significant way even down to the point where I'm getting timeout errors. It doesn't seem to be an issue with loading the page but with traversing the DOM-Structure. When I'm doing a screenshot after the timeout the objects in questions are always there.

Is there any workaround for this?

Wuerzburger avatar Mar 17 '21 13:03 Wuerzburger

Hello, could you send an example project/code to reproduce it?

Overmiind avatar Mar 17 '21 23:03 Overmiind

Hi, i also wrote a question on stackoverflow for this problem (I'm not sure if it isn't a general problem in puppeteer): https://stackoverflow.com/questions/66563417/puppeteer-in-headless-mode-with-waitforselector-sometimes-gives-timeout

There you can also see the example code and find additional information

Wuerzburger avatar Mar 18 '21 10:03 Wuerzburger