Skip to main content

All Questions

0 votes
1 answer
54 views

How do I get browser pages when using Puppeteer.connect()?

I'm working on some automation with Puppeteer and I need to create the browser object by using Puppeteer.connect({ browserWSendpoint: endpoint }), rather than Puppeteer.launch({ headless: false }). ...
Gabriel Bigelow's user avatar
0 votes
2 answers
130 views

Puppeteer getting 404 when connecting to chrome browser remote debugging link (localhost:9222), how to fix this? [duplicate]

I am using puppeteer on an existing browser window using this code: const browser = await puppeteer.connect({ browserWSEndpoint: 'ws://localhost:9222' }); I have started a chrome window ...
InfiniteLadder's user avatar
0 votes
0 answers
241 views

Can you intercept CDP commands from puppeteer without actually executing them on the page?

I'd like to be able to leverage puppeteer to abstract click, scrolls, screenshots, etc, but pass the raw CDP commands generated by Puppeteer to another service. Similar to how DevTools Protocol ...
Muttonchop's user avatar
-1 votes
1 answer
670 views

How to use recorded, puppeteer-like automation commands client side, e. g. as google chrome snippet in the browser?

I would like to record some browser automation steps with the Recorder of google chrome dev tools generate puppeteer code from it copy the puppeteer code to a google chrome Snippet modify the code (e....
Stefan's user avatar
  • 11.6k
0 votes
1 answer
53 views

Identifying the domains implemented in Firefox RDP which is subset of the Chrome DevTools Protocol (CDP)

Firefox implements the Remote Debugging Protocol (RDP), which is a subset of the Chrome DevTools Protocol (CDP). You can find detailed information about RDP in the official documentation. Some methods ...
longer's user avatar
  • 111
0 votes
1 answer
1k views

How do I extract the elements of the Request Initiator Chain (as seen in the Network tab) via a CDP session in Playwright (JavaScript)?

Screenshot of Request Initiator Chain from Dev Tools Network Tab (Chromium Browser) Take this particular request: "https://uk-script.dotmetrics.net/hit.gif?id=13934&url=https%3A%2F%2Fwww.bbc....
Manoj Raghavendran's user avatar
1 vote
1 answer
442 views

How to fill an input element that is in a popup using puppeteer?

I'm using puppeteer to automate access to a specific newspaper. The problem is that to enter the email and password it is necessary to click on the sign in button and wait for a popup to open. However,...
mlcscoder's user avatar
2 votes
0 answers
118 views

Puppeteer / Chrome DevTools: retrieve certificate for intermediate server in a redirect chain

tl;dr Is there a way to fetch certificates for all intermediates servers involved in a redirect chain and not only the final server? Details Lets say we have a URL (e.g., https://fastlane.ci) that ...
Yan Foto's user avatar
  • 11.3k
0 votes
0 answers
134 views

Puppeteer Page.$$eval() method returning empty arrays

I'm building a web scraping application with puppeteer. I'm trying to get an array of links to scrape from but it returns an empty array. const scraperObject = { url: 'https://www.walgreens.com/', ...
Elvin Uchendu's user avatar
0 votes
1 answer
428 views

Protocol error (Page.getResourceContent): Agent is not enabled. (Puppeteer)

I'm having a problem running this code. const client = await page.target().createCDPSession(); const content = await client.send("Page.getResourceContent", { frameId: String(page....
Rafael de Carvalho's user avatar
0 votes
1 answer
1k views

Puppeteer download embedded PDF file

I am visiting a page which has a link for a pdf file. The link opens a new tab and its content look like this: <html> <head></head> <body style="height: 100%; width: 100%;...
gothaf's user avatar
  • 105
0 votes
0 answers
217 views

How to programmatically manipulate and resend a heavy javascipt post request?

I am trying to write a script which captures post requests and manipulate them and resend them to the server. The page has heavy javascripts and it is hard to emulate the behavior with low-level ...
Shahriar's user avatar
1 vote
1 answer
1k views

chrome "--remote-debugging-port" not working

I want to attach puppeteer to chrome, but that straight forward. The problem is this doesn't work: start chrome.exe --remote-debugging-port=9222 This runs and opens chrome as expected. The problem is ...
Júlio Almeida's user avatar
2 votes
0 answers
2k views

Open DevTools with Puppeteer on the Console tab by default

I'm using puppeteer for my E2E testing on Linux/Mac. Works like a charm, but for debugging purposes I would like to use DevTools. I start the browser as follows const browser = await puppeteer.launch(...
Jeanluca Scaljeri's user avatar
0 votes
1 answer
2k views

puppeteer page.evaluate() returns empty object

I am trying to scrape this web https://poe.ninja/challenge/builds?time-machine=day-6 using Puppeteer. I tried Puppeteer page.evaluate querySelectorAll return empty objects and saw lot of similar ...
001's user avatar
  • 27

15 30 50 per page
1
2 3 4 5
14