8,045 questions
0
votes
0
answers
15
views
set PUPPETEER_SKIP_DOWNLOAD env variable but still
try to install a node project in a mac, but keep getting a puppteer installation error. I don't know why the installation fails, simply I just want to skip the installation
node_modules/.pnpm/...
0
votes
1
answer
25
views
Puppeteer "No usable sandbox" on Github Actions with ubuntu-latest (23)
I have some jobs running on Github Actions, that require Puppeteer to run, but it fails to start with this error
Cannot start ChromeHeadless
[2303:2303:1207/162353.403103:FATAL:content/browser/...
0
votes
0
answers
44
views
Does anyone have a working method for uploading images to the new Facebook composer using Puppeteer? [closed]
I've already tried:
Locating the composer's actual <input type="file"> → it doesn't exist in the DOM.
Forcing the visibility of hidden inputs → Facebook ignores them.
Using .uploadFile(...
0
votes
0
answers
66
views
Unable to load unpacked Chrome extension inside Linux container using Puppeteer or CLI
I’m trying to load an unpacked Chrome extension inside a Linux-based Docker container to automate extension testing.
However, the extension does not load — neither when launching Chrome directly via ...
0
votes
0
answers
50
views
I'm getting a timeout when adding second page.evaluate with puppeteer
I have this with node 25.0.0 and Windows and puppeteer. Basically the get_card_search_results is called and it loads a page that features lazy loading. It will "scroll" the page down to ...
0
votes
0
answers
62
views
Error: read ECONNRESET with Puppeteer and node 25.0.0 on windows
As the title says, I just installed node 25.0.0 and puppeteer on windows. Here is my file:
const puppeteer = require('puppeteer');
var browser;
var puppeteer_options = {
headless: true,
...
1
vote
1
answer
59
views
Puppeteer - Wait For Element After Selector
I have an HTML table with data like
Username
is admin
Actions
New User
✓
Make Admin
Old User
Make Admin
After clicking "Make Admin", how do I wait for the check mark to show up?
I figured ...
0
votes
0
answers
45
views
Failed to deploy puppeteer chromium in Render
I used puppeteer in my Node.js project and wanted to deploy it to Render as Docker image but the puppeteer chromium browser fails to launch in Render and gives me the error trace below. The app runs ...
0
votes
0
answers
39
views
How can I disable the page translation popup in Microsoft Edge when using Puppeteer?
When I open a local website using Puppeteer and Microsoft Edge I get a "Translate page from [language]" popup like seen in the screenshot below.
I currently launch Microsoft Edge using the ...
0
votes
0
answers
52
views
Cannot execute Puppeteer in IIS
I have an ASP.NET Core 8.0 Web API created with C# that provides an endpoint to create PDFs from HTML markup. I use PuppeteerSharp to create the PDF, and it worked fine locally, but it does not work ...
0
votes
0
answers
40
views
Jest/Puppeteer test for a Chrome Extension fails with timeout on Firestore getDoc, but manual tests and Cloud Function succeed
I am building a Manifest V3 Chrome Extension using Firebase and testing it with Jest and Puppeteer. My manual testing works perfectly, but one specific automated test consistently fails with a 30-...
0
votes
1
answer
65
views
How to get an array of elements by using `page.$$eval()`
I know page.$$() returns Array<ElementHandle>.
Similarly I want to get Array<ElementHandle> by using page.$$eval() with some filtering.
My use case is that I have a table that lists up any ...
0
votes
0
answers
35
views
How to access Shadow DOM content using Puppeteer’s page.content()
I am trying to access Shadow DOM content using Puppeteer’s page.content(), but I am not able to retrieve it. Is this intentional, and if so, why?
I tried page.content() for the shadow dom content but ...
1
vote
0
answers
76
views
Puppeteer Sharp not logging in to correct Chrome profile
Good day.
Im working on a project with Puppeteer Sharp where i need to pull data from a website that is locked with Google authentication. I want to open my profile that have been Authenticated. But ...
0
votes
1
answer
84
views
Puppeteer - scroll down until you can't anymore - script failing
I want to automate deleting my ChatGPT chats because I have about 244 of them, and I’m not going to do that manually. What I want to do is scroll down to the bottom until there are no more chat items, ...
2
votes
0
answers
122
views
SOCKET_EAGAIN error on Nesk\Puphpeteer with Codeigniter project
Getting next clue/socket-raw vendored error (Socket\Raw\Exception) when trying to launch Puppeteer browser:
Socket operation failed: Resource temporarily unavailable (SOCKET_EAGAIN)
Socket\Raw\...
0
votes
4
answers
254
views
Why don’t Tailwind fractional spacing classes like mr-1.5 apply in my project, while mr-1 and mr-2 work?
I’m using Tailwind CSS with my project (Puppeteer for PDF export, but this also happens in plain HTML rendering).
I noticed that spacing utilities with fractional values such as mr-1.5, ml-2.5, etc. ...
-1
votes
1
answer
123
views
How Do I Use Proxies with Puppeteer and a Local Chrome Instance?
I'm using Puppeteer and JS to write a web scraper. The site I'm scraping is pretty intense, so I need to use a local chrome instance and a residential proxy service to get it working. Here's my basic ...
2
votes
2
answers
188
views
Is it possible to bundle Puppeteer on the frontend (no node.js) to export the current page as a pdf? [closed]
I'm trying to add an "export to pdf" button to a webpage.
I'm aware that Puppeteer is mostly used as a Node.js library, but the documentation for Puppeteer specifically mentions that it's ...
1
vote
1
answer
85
views
Cannot test throwing error inside event handler using Jest and Puppeteer
I'm trying to test that a particular element's event listener successfully throws an error. I want to catch the error so that my test does not automatically fail, but I'm not able to for some reason.
...
0
votes
1
answer
67
views
Puppeteer checkbox is either not clickable or not an element
I get an error when trying to click on this checkbox using puppeteer.
HTML/DOM:
<div class="input-container">
<label class="st-checkbox" aria-checked="false"&...
0
votes
0
answers
55
views
node-html-to-image on Vercel serverless function
According to this Vercel page it seems like using a Vercel function to run Puppeteer should be doable, but not matter what I do, I end up with Unhandled Rejection: Error: Unable to get browser page. ...
0
votes
0
answers
98
views
Lighthouse user-flow with Puppeteer always forces mobile emulation even when desktop config is set
I’m running a Lighthouse user-flow using Puppeteer to measure performance on our web app.
When I execute my script with just Puppeteer, the app loads in desktop view exactly as expected.
But whenever ...
1
vote
0
answers
71
views
Puppeteer PDF generation fails on Elastic Beanstalk with "Could not find Chrome" error
I am trying to generate PDF invoices using Puppeteer in my Node.js app. Locally, the code works perfectly and generates the PDFs as expected.
However, when I deploy the app to Elastic Beanstalk (...
0
votes
1
answer
142
views
Mismatch between Puppeteer remote object id and Chrome dev tools object Id
I'm trying to use Puppeteer to find elements on a page with a click handler. Doing this is not possible using Puppeteer directly, but Puppeteer exposes the Chrome Devtools Protocol which allows me to ...
0
votes
0
answers
33
views
Puppeteer Core and Sparticuz stops at browser launch when deployed
When I deploy my Puppeteer core Node.js in serverless function, it doesn't work and works properly in local because I am using puppeteer base.
"puppeteer-core": "^21.3.8"
"@...
0
votes
0
answers
73
views
Puppeteer launch fails with "req.on is not a function" in AWS ECS but works locally
Environment
Puppeteer: ^24.14.0
Node-RED: latest (from nodered/node-red Docker image)
Docker on Alpine Linux
Works locally in Docker, fails in AWS ECS (both Fargate and EC2)
Error
TypeError: req.on is ...
0
votes
1
answer
68
views
JS execution slower in built chromium binary compared to downloaded chromium binary
I am using puppeteer to run a bunch of JS to process HTML files in headless chromium. I noticed that when I use the Chromium binary downloaded from https://storage.googleapis.com/chromium-browser-...
-1
votes
2
answers
67
views
Puppeteer can't access var doc in javascript
I am trying to scrape a web page using puppeteer, however, I can't access var doc with puppeteer. Although I can see it in the source page of my web browser
var rows = [];
var i = 1;
/* while(i <= ...
0
votes
0
answers
67
views
Dynamic State-wise Coloring in India Map using amCharts 5
I'm building an interactive India map using amCharts 5, where each state should be dynamically colored based on its purchase contribution percentage. The contribution data is coming from the backend, ...
1
vote
2
answers
213
views
Puppeteer Proxy Issue: ERR_INVALID_AUTH_CREDENTIALS on Specific Website
I've run into an issue while using Puppeteer with a proxy:
On some websites, the proxy works without any problems. However, on others—such as csfloat.com—the connection fails, and Puppeteer crashes ...
0
votes
0
answers
67
views
CSS file causing Jest/Puppeteer test to time out
The test below is a contrived example intended to demonstrate the issue I'm encountering. I'm using Jest and Puppeteer to test a function called doSomething. The file containing the function (random....
0
votes
0
answers
82
views
Puppeteer scraper - bot detection
I have a scraper running on Puppeteer and Node.js. When I change the headless mode from false to true, the bot gets detected. I would like it to work with false since the deployment will be on Railway....
0
votes
0
answers
91
views
A4 PDF not sizing correctly, producing border around pages
I am downloading a .pdf (A4) size using Puppeteer, however I am getting a light grey border around my pages.
I have eliminated my .pdf HTML causing an issue by generating a blank A4 page and am still ...
0
votes
1
answer
111
views
Puppeteer-extra, TimeoutError doesn't seem to exist
This is a followup question to this one, which resolves a missing definition of TimeoutError in my puppeteer code. Thing is, I want to use puppeteer-extra, and despite being a lightweight wrapper for ...
1
vote
2
answers
144
views
Puppeteer "TimeoutError is not defined"
I have a very simple web scraper app whose sole purpose is to evaluate the javascript on a webpage and return the generated HTML. It works fine most of the time. However, it is not handling timeouts ...
2
votes
2
answers
2k
views
Puppeteer: Protocol error (Page.navigate): Invalid referrerPolicy
This has started happening recently and am struggling to work out why. The line:
await page.GoToAsync(fromURL.ToString());
Throws the exception:
MESSAGE:
Protocol error (Page.navigate): Invalid ...
2
votes
1
answer
235
views
Chromium can't run on in container Apple silicon with puppeteer in a DDEV environment
I have problem to activate Puppeteer in my MacOS environment (M1 processor). I get the following error message:
/usr/local/lib/node_modules/pa11y-ci/node_modules/puppeteer/lib/cjs/puppeteer/node/...
-2
votes
1
answer
728
views
Why is Chrome when used with Puppeteer not exactly like "real" Chrome? [closed]
I'm trying to automate loading web pages.
I have tried to use cURL for this task. Forget about it! Those days are long gone. You will only get a "Just a moment..." dummy page returned.
...
0
votes
1
answer
122
views
Handling Uncaught Exceptions in Puppeteer and Closing the Browser
I'm currently facing an issue where my Node.js application crashes at night due to the internet provider forcing an internet disconnection, which leads to an ECONNREFUSED error in my Puppeteer code. ...
0
votes
1
answer
57
views
Extracting link from navigator.share dialog using Puppeteer in an Angular website
I am working on a website that contains multiple cards, each featuring a button that triggers navigator.share, opening a dialog with a link inside.
I need to extract that link using Puppeteer for ...
-1
votes
1
answer
125
views
How to force Google Chrome to use custom policies and Kerberos authentication in a multi-user container setup?
I'm working with a custom build of the SignalFx Synthetics Agent, which uses Puppeteer and Google Chrome. Previously, Kerberos authentication worked fine with the following setup:
Installed krb5-user ...
1
vote
0
answers
44
views
Not able to get Apex graph in puppeteer
I am trying to get the Apex.js graph in the puppeteer , but it is not getting printed though graph is getting render in the page where from where puppeteer has to download. Other contents are present ...
0
votes
1
answer
123
views
Styling issue with puppeteer [closed]
Can someone help me with a styling issue, it's driving me crazy.
I use puppeteer within nodejs and it works fine until I started styling.
I noticed that styling has trouble with dynamic content via js....
1
vote
1
answer
154
views
Puppeteer can't run my Firefox installed by apt, error here: targetInfo.url.startsWith('chrome-extension://');
I cannot run Puppeteer with my Firefox installed by apt. I need this because I want to use secure binary, controled by apt. I get this error:
/temp/t/puppeteer/node_modules/puppeteer-core/lib/cjs/...
-2
votes
1
answer
80
views
Does waitForNavigation() not wait for redirections?
Considering this Puppeteer test:
it('should validate [email protected] access flow', async () => {
const browser = await puppeteer.launch({ slowMo:10 })
await browser.deleteCookie()
const page = ...
4
votes
2
answers
967
views
Is Chrome /json/version feature deprecated?
I used to debug Chrome with PuppeteerSharp. For that, I run Chrome with command:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --profile-directory=&...
1
vote
0
answers
206
views
Puppeteer: Failed to launch the browser process after a couple hours
I'm using Puppeteer to scrape data from a website and it works fine for a couple hours. But after some time it randomly stops working and I get the error below. I saw other posts and Stackoverflow ...
0
votes
0
answers
102
views
How to access the DOM of a cross-origin iframe?
I want to access the document of an iframe that is loaded from a different domain than the main page.
I know that this is normally impossible due to browser security policies, but I found some ...
1
vote
1
answer
61
views
Interception xhr requests after pressing the load more button with puppeteer
Initially two json files arrive on the site - the rest arrive after clicking the ‘load more’ button. I'm trying to intercept all requests. The example shows how I am waiting for the button to appear ...