Relative Content

Tag Archive for node.jspuppeteer

Puppeteer variable in page.evaluate

I use puppeteer but I have a problem! I would like to use the variable “name” instead of the text “Username” like on my screenshot, I have tried almost everything without results! can you help me please?

Retrieve text from a JS code using Node JS (puppeteer)

I am struggling to retrieve the text from some lines of JS.
The lines are like this and the same one can be found twice or three times in the document (meaning that I have to find the duplicates): {"year":2,"module":"POSTGRAD","price":6651.54,"additionalhours":-56.21}
The text should be saved a txt file, for example: courses.txt Everytime the code is execute, another line should appear, something like: date, year, module.

Puppeteer Missing Dependencies?

I’m having some trouble getting my project to run locally after installing puppeteer. I am running version 22.11.2 and when I try to start my project I receive the following error.