Relative Content

Tag Archive for node.jspuppeteer

How to check if button clicked has been disabled

I want to click the next button multiple times until it becomes disabled. As shown I am evaluating the page to get the button based on the class. However, this always returns null.
How can I achieve this?

Error with puppeteer when running in docker

/root/.cache/puppeteer/chrome/linux-127.0.6533.88/chrome-linux64/chrome: 1: Syntax error: “(” unexpected TROUBLESHOOTING: https://pptr.dev/troubleshooting at Interface.onClose (/usr/src/app/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310:24) at Interface.emit (node:events:531:35) at Interface.close (node:internal/readline/interface:528:10) at Socket.onend (node:internal/readline/interface:254:10) at Socket.emit (node:events:531:35) at endReadableNT (node:internal/streams/readable:1696:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) : Failed to launch the browser process! /root/.cache/puppeteer/chrome/linux-127.0.6533.88/chrome-linux64/chrome: 1: Syntax error: “(” unexpected TROUBLESHOOTING: https://pptr.dev/troubleshooting FROM public.ecr.aws/docker/library/node:20.16.0-slim RUN apt-get update -y && apt-get install -y openssl […]