Skip to content
Advertisement

Tag: headless-browser

Puppeteer can’t find elements when Headless TRUE

I’m facing some problems with Puppeteer, I want to extract a list of items and succeed when headless is FALSE but not when TRUE. First thing first, I want to get those elements before mapping on it. Here’s my script, maybe you can reproduce it, it is really basic. Answer For starters, I’d prefer page.waitForSelector(yourSelector) over page.waitForNetworkIdle();. In most cases,

Advertisement