mercredi 13 février 2019

Page loads with missing elements

I have some internal web pages that I run with puppeteer to take screenshots of to ensure their daily sanity. Everything was working fine back when I was on v1.9.0. However, since my puppeteer version upgrade to > v1.10.0, some page elements started disappearing. (Only happens in headless mode).

Also added additional waitFor flags like domcontentloaded, networkidle0 and load but the element still doesn't show. Adding ridiculous timeout like a minute or two to ensure the page completes loading is also ineffective.

I have tried extracting the loaded content (html) and it seems as though puppeteer is unable to handle the page and the bottom half of the content/request is cut off abruptly.

Tried manually reverting through the commits between v1.9.0 and v1.10.0 to see what changes may have caused, but had no luck. I was able to revert most commits except those that needed the compatible chrome version.

Is there anyone else facing the same issue? Or have the expertise or share some guidance? The version upgrade is necessary and we cannot revert and the issue is still occurring up to the latest version of v1.12.2.

Aucun commentaire:

Enregistrer un commentaire