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,
Tag: headless-browser
How to get the complete html AFTER javascript on RPi in a file
I have a RPi 4 and I want, via terminal, to generate a website.html that has the complete rendered html of a webpage. I want to do this for example in order to search the whole page for a string or pattern etc… I can do this using something like wget or curl for example wget -O website.html https://www.example.com The