Questions tagged [chrome-devtools-protocol]

Questions about CDP (Chrome Devtools Protocol) that's used by many automation tools (like Puppeteer), libraries, wrappers. It's also used by Chrome's built-in devtools.

Chrome Devtools Protocol documentation: https://chromedevtools.github.io/devtools-protocol/

185 questions
0
votes
0 answers

Chrome DevTools Protocol - devtool can not get log info, when backend emit "Runtime.consoleAPICalled" event

I am writing a cdp backend for the chrome-devtool-frontend。 I can not see any output in chrome-devtool-frontend,when cdp backend emit "Runtime.consoleAPICalled" Event。 I make sure that I enable Runtime domain…
sisiea
  • 61
  • 3
0
votes
0 answers

Read Network Traffic with javascript and selenium

I want to read network traffic of my webpage ('some url') with javascript and selenium web driver. I have my code here: let driver = await new Builder().forBrowser('chrome').build(); await driver.manage().setTimeouts( { implicit: 30000 } ); …
0
votes
0 answers

Chrome Extension Debugger: how to prevent end user from closing "EXT_NAME started debugging this browser" bar

Is it possible to prevent closing the "EXT_NAME started debugging this browser" bar when using chrome.debugger API? I'm developing an enterprise security extension to prevent navigation to certain websites and attach specific headers to all…
0
votes
0 answers

Sources not showing up in devtools even with css maps enabled

tell me how to solve the problem. Sources not showing up in devtools even with css maps enabled I tried changing the settings to dev tools
0
votes
0 answers

Why cant I see LinkedIn page content when I search for post content in chrome dev tools under Network tab?

Does LinkedIn use a socket to transfer page content to the browser? I copied text from a LinkedIn post and searched for it in chrome dev tools. I couldn't find the text the appears in the post. how is this possible?
0
votes
0 answers

Chrome DevTools protocol: how to configure a RequestPattern to capture all requests except those sent from the service server

I need to handle all request except those sent from the service server. At present, I do it using such a way: capture all requests and into handler filter service requests. await client.Fetch.enable({ patterns: [ { requestStage:…
mlosev
  • 5,130
  • 1
  • 19
  • 31
0
votes
1 answer

org.openqa.selenium.devtools.DevToolsException: You are using a no-op implementation of the CDP

Please be sure to include an implementation on the classpath, possibly by adding a new (maven) dependency of org.seleniumhq.selenium:selenium-devtools-vNN:4.1.3 where NN matches the major version of the browser you're…
0
votes
0 answers

Starting chromium headless in electron to use Chrome DevTools Protocol for calling Page.printToPDF

I have an electron app and want to get a pdf. I tried win.webContents.printToPDF(...) But here I don't have headerTemplate or footerTemplate parameters available. I add a remote-debugging-port and connect to that with puppeteer. There I can…
0
votes
0 answers
0
votes
1 answer

Is there a way to open chrome devtools and ensure that console tab is selected

When you do command+option+i on this page, it will open the devtools. When it opens it will be focused on the last tab that was focused. You can change the focused tab (from "Element" pane to "Console" or others) and then next time devtools opens,…
0
votes
1 answer

Selenium 4 chrome devtools using Python fetch.fail_request not failing the request but keeping it as pending

In the following sample code the fail_request is not failing the request but simply keeping it as pending. I have similar issues with get_response_body or fulfill_request. However all requests that are let to continue (using continue_request) are…
0
votes
2 answers

Chrome shortcut to open source panel directly?

Is there a keyboard shortcut to open the Chrome source Panel directly? I found some shortcuts to open the element panel(shift+command+c) or console panel(command+option+j) but did not find one to open the Source panel, so that I can inspect and…
0
votes
1 answer

How(Where) to get the these icons of Chrome Developer tools?

I want to get these SVG icons for my purpose of use, How (or Where) I can get them? Is there a Chromium repo or something
0
votes
1 answer

DevTools - DOM domain - only one event

I'm trying to use DevTools protocol - for DOM domain events:https://chromedevtools.github.io/devtools-protocol/tot/DOM/ I activate the DOM domain, it is successfully activated. Now I get events, BUT when loading the URL - I always get only one…
Optimus1
  • 444
  • 2
  • 13
0
votes
2 answers

Export Response based on Name from Chrome Network tab in DevTools

Is it possible somehow export Response information from Network tab from Chrome Dev Tools with python? Thank you.