Questions tagged [puppeteer]

Puppeteer is a Node.js library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Puppeteer cant intercept xhr response json

when I visit this URL: https://www.petedge.com/tp-cat-grooming-bag#sku_id=TP463%2017 In the chrome networks tab I can see this network GET request to a url that returns JSON data: I have a node.js ...
2
votes
0answers
14 views

puppeteer page evaluate not working as expected. it's return null

I inspect data from one website using document.querySelector('button[id="eventRowId_426066"]').innerText; i got the expected results as below. What went wrong here. Thank you but i tried ...
0
votes
0answers
4 views

Node Puppeteer - unable to step through form if it has a Google AutoComplete Element

I am developing an E2E test for my app. In order to step through the whole workflow and make sure it works from beginning to the end. Now given a form with an autocomplete element: I am able to type ...
2
votes
2answers
61 views

How to pass variable to an arrow function?

I want to use selector parameter inside arrow function for an if statement. But inside my if() statement I receive an error that says, that selector is not defined. Is there an any way I can fix this? ...
0
votes
0answers
13 views

The bot keeps running after node-cron's task.stop() is applied

So I'm working on a puppeteer bot with Nodejs and Express as backend and EJS template as frontend. The bot starts/stops runninng as soon as a button is clicked on the front end. The button sends a ...
0
votes
3answers
56 views

How to return variable from evaluate function?

How can I return something from evaluate in a variable? async function myFunction(page, parentID, elementID) { var childElement; await page.evaluate((parentID, elementID) => { var ...
0
votes
0answers
17 views

How to get pdf buffer from response body with puppeteer?

I need to download a pdf while it navigates to "chrome pdf view" with puppeteer. this is the test link I have been using to test this. I am trying to get the pdf buffer from the response ...
0
votes
1answer
19 views

Puppeteer - get input element by xpath and then click and type

I am trying to login and for this I've made the function: async function login(page, usernameXPATH, passwordXPATH, username, password) { const usernameElement = await page.$x(usernameXPATH); await ...
2
votes
0answers
21 views

Running multiple instances of puppeteer results in slower loading

I am using worker threads + puppeteer to achieve some how of multithreading so i can open multiple browsers without affecting the speed of it but look like that didnt worked is it a threads problem ? ...
0
votes
0answers
14 views

How to create an executable file for jest-puppeteer project?

I have created a project using jest-puppeteer in nodejs. I don't have index.js in the tests folder. I have added different scripts inside this folder like below I have defined tests in the scripts ...
0
votes
0answers
8 views

Node.js reports “Use-After-Free” vulnerability with puppeteer

I started a new npm repo (running in an official node docker container), installed the puppeteer package, and got a "high" severity vulnerability warning: # node --version v15.13.0 npm --...
0
votes
0answers
12 views

Write unit test to generate PDF with puppeteer?

I try to write unit test for my function. I have tried several solutions (jest.fn, spyOn) and it doesn't work. What should I do with these spaghetti unit test? My flow: Receive bookingNo and booking ...
0
votes
1answer
25 views

How to iterate over a table and then hover on a particular row having a given column value in puppeteer?

The table is having columns as given below: | Organization | Username | Option | ____________________________________________________________________ | Helloworld | ...
2
votes
1answer
22 views

How to scroll amazon offers page using puppeteer?

Hey I'm trying to scroll the amazon offers page using puppeteer but it is not scrolling and there is no mouse event happening. This is the offers page URL. https://www.amazon.com/dp/1416545360/ref=...
0
votes
0answers
16 views

WebScraping on dynamicaly called iframes with no src=“” on jquery or puppeteer

I have an iframe dynamicaly called by: href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(VAR?ABLES,,true,,false,)) More exactly, after i click the div mentioned below: &...

15 30 50 per page
1
2 3 4 5
357
 
久草视频新免费_日韩视频一中文字暮_欧美三级片