puppeteer Questions

2

I'm trying to get to run puppeteer on WSL2. I've tried using a remote display via VcXsvr but my firewall settings and host have custom changes and I've frankly given up seeing that https://learn.mi...

4

Is it possible to connect a browser to puppeteer without instantiating it in puppeteer? For example, running an instance of chromium like a regular user and then connecting that to an instance of p...
Zoochemistry asked 11/3, 2019 at 7:11

3

I want to return an object from the HTML as below: HTML <div id="collection"> <div class="div"> <h1 class="title">Title 1</h1> <ul class="list"> <li>list i...
Falange asked 29/5, 2020 at 10:9

9

Solved

As you can see with the sample code below, I'm using Puppeteer with a cluster of workers in Node to run multiple requests of websites screenshots by a given URL: const cluster = require('cluster')...

2

We wrote a Print PDF lambda function generates a PDF file using puppeteer from HTML content sent to it in the SQS message. It is deployed as a lambda in aws. The function also allows uploading of p...

11

I am trying to install Puppeteer in Windows 10 using the below command and am getting an error. The command used to install Puppeteer: npm install --save PUPPETEER Error: ERROR: Failed to set up C...
Misbeliever asked 31/7, 2020 at 7:15

5

That is, the total amount of data downloaded across all resources (including video/media), similar to that returned by Chrome DevTools' Network tab.
Apoplectic asked 15/1, 2018 at 12:46

1

Solved

Have a single nodejs project using a PDF generator, and need paste a bar chart into it, but the project runs on a desktopless server. Have any library or method to create a bar chart image on nodej...
Perambulate asked 19/4, 2024 at 22:44

1

I'm trying to hover a Twitter profile name with puppeteer so that the popup with profile information appears. Here's my code: const puppeteer = require('puppeteer'); const selector = '#react-roo...
Egesta asked 21/3, 2021 at 6:52

15

This Meteor code uses "puppeteer 8.0.0", "puppeteer-core 10.0.0", puppeteer-extra 3.1.18" and "puppeteer-extra-plugin-stealth 2.7.8", It gives this error: Error:...
Merodach asked 20/6, 2021 at 0:10

8

Solved

Is it possible to open a local HTML file with headless Chrome using Puppeteer (without a web server)? I could only get it to work against a local server. I found setContent() and goto() in the Pup...
Hookup asked 1/12, 2017 at 5:48

3

Solved

I am using the exposeFunction-command in the following manner: await this.page.exposeFunction('foo', function(){ return 'bar'; }); This works as intended and gives me the window.foo-function. I...
Alfreda asked 2/12, 2019 at 11:16

3

I had to request the same webpage twice to get the cookies in the 1st request and use it in the 2nd request in the following example. Could anybody show me the code to save the cookies in one puppe...
Varices asked 9/6, 2019 at 13:13

3

Solved

I would like to add custom methods to the puppeteer.Page object, so I could invoke them like so: let page = await browser.newPage(); page.myNewCustomMethod(); Here is one out of many custom method...
Amandy asked 11/7, 2019 at 2:19

3

I'm implementing a web-scraping script for a website which will collect some useful information. Script is implemented using Puppeteer library and is basically a set of instructions like: Start a ...
Nevernever asked 23/12, 2020 at 1:14

1

Solved

Here is a simplified version of my code: var page; var launched = false; app.post("/test", async(req, res) => { if ( launched == false ) { const browser = await puppeteer.launch({ ...
Prosimian asked 5/4, 2024 at 15:50

2

Solved

I want trace changed DOM like mutationobserver in headless chrome. So I learning puppeteer library, but don’t know how to use do that. It’s possible to trace DOM change in puppeteer?? thanks
Catercornered asked 20/12, 2017 at 10:32

3

Solved

Is it possible to disable downloads for specific mime type. For example navigating to an url that by default will download a zip archive, should do nothing. Edit: I don't know in advance what ur...
Stogner asked 15/2, 2019 at 13:24

3

Solved

I'm Aadarshvelu! Recently Started Testing My WebApp Code Using Jest With Puppeteer. So I Have Page Which All Credentials Have Been Filled With Puppeteer.But When SummitButton('signBtn') Clicked POS...
Brachial asked 1/11, 2019 at 16:22

4

Solved

I have headless off and I want to wait untill user redirect to some page. I could use waitForRequest from puppeteer API but I don't know exact url it just must pass few circumstances. So I use wai...
Carlile asked 18/10, 2019 at 12:34

3

I'm working on an Express JS API for converting base64 HTML to PDF. I'm using Puppeteer for this conversion. Within the HTML code, there is an image hosted on a dedicated server that requires authe...
Cohune asked 25/10, 2023 at 9:31

2

Solved

I am new to puppeteer and docker. I am facing an issue while setting up puppeteer in headful mode in docker container. Puppeteer version: 1.6.2 Platform / OS version: Docker node:8-slim Node.js ve...
Gigot asked 3/8, 2018 at 7:40

4

Solved

I'm using this Laravel package: https://github.com/spatie/browsershot to take a screenshot. It's based on Puppeteer But when I run it returns this error Error Output: Error: Could not find Chrome (...
Karie asked 8/1, 2024 at 11:37

1

i have a page with cards i click on the title of each it takes to a page then i click on a link in that page and it takes me another page to extract the data that i want. After that i navigate back...
Oversight asked 7/3, 2024 at 13:39

5

I have the following code, where I store all src in an array, I would like to store only img with class name xyz const imgs = await page.$$eval('img[src]', imgs => imgs.map(img => img.getAtt...
Immobility asked 11/3, 2019 at 6:43

© 2022 - 2025 — McMap. All rights reserved.