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
1 answer

Are Puppeteer's page.metrics() *Duration values measured in seconds or milliseconds?

I assume these *Duration variables are measured in seconds or milliseconds, but I'm having trouble finding confirmation in Puppeteer/Chromium/DevTools Protocol documentation. Example metrics…
Warren Halderman
  • 330
  • 1
  • 3
  • 12
0
votes
1 answer

Drag and Drop Behavior on Chrome DevTools Protocol

I am trying to write a tool that open's a website and interacts with and triggers the drag/drop behavior. I am seeing Input.dragIntercepted, Input.dispatchDragEvent functions in the documentation. But when I use these functions, I am getting a ...…
0
votes
1 answer

How to print the raw devtools request sent by Puppeteer?

I see that Puppeteer used devtools protocol. I want to see what requests are sent by Puppeteer. https://github.com/puppeteer/puppeteer const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page =…
user1424739
  • 11,937
  • 17
  • 63
  • 152
0
votes
1 answer

NodeJS - Bounding rect / coordinate / offset (in px) for each word of a HTML text content

I'm trying to get the boundingRect of each word in a HTML. For example, Lorem ipsum dolor I want the output as [x, y, width, height] - word [ 8, 8, 44.671875, 19 ] - Lorem [ 56.5, 8, 43.125, 19 ] - ipsum [ 103.4, 8, 35.02,…
XOR
  • 314
  • 5
  • 11
0
votes
0 answers

how to achieve ChromeDevtoolsProtocol - CSS.getMatchedStylesForNode in the client

I have a client which would receive protocol "CSS.getMatchedStylesForNode" from ChromeDevtools.But I don't know how to receive this protocol. Please help.
0
votes
1 answer

WebView2: must I install Microsoft.Web.WebView2.DevToolsProtocolExtension?

In this tutorial about using the Chromium devtools protocol from WebView2 it says the Microsoft.Web.WebView2.DevToolsProtocolExtension nuget package is necessary. Is it still necessary (August 2021)? The simple stuff I'm doing to interact with…
O. Jones
  • 103,626
  • 17
  • 118
  • 172
0
votes
1 answer

Chrome Devtools Network Selenium python

I am making a code with Selenium in Python and collecting data on a website, and I have noticed that in Chrome's Devtools specifically in the "Network" section I have a file named "search", which gives me all the information that I need neat, this…
0
votes
1 answer

Is there any documentation for the WebView2 DevToolsProtocolHelper

Has anyone seen any documentation on the WebView2 DevToolsProtocolHelper? In another question I asked (How do I programmatically add a file to a fileupload control from a windows form to a webpage) it was suggested that I download and use the…
Chris Dunlop
  • 135
  • 1
  • 13
0
votes
1 answer

Chrome dev tools protocol. Message Emulate.setUserAgentOverride

I'm trying to substitute user agent via message Emulation.setUserAgentOverride. I send the message with parameters: [userAgentOverride] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122…
Alex Rsk
  • 93
  • 1
  • 7
0
votes
0 answers

Chrome DevTools SetTimeZoneOverRideCommand cannot change system time

I have problem using Chrome DevTools SetTimeZoneOverrideCommand according to IP timezone. But when I check in Whoer.net still shows is system time. In here have 3 problem: I using in selenium proxy is Rotate Proxy so is that posiible maintain same…
0
votes
1 answer

chrome remote interface ECONNREFUSED 127.0.0.1:9222

I am using Testcafe and it does not have direct support to access Chrome Dev Tools. My Aim is to cut the network so that I can see the error dialog in the website. This is the code that I have written. TestCafe opens at a different url Here is the…
0
votes
0 answers

How to automatically enable custom dev tools formatters using dev tools API?

I'd like to enable the "Custom formatters" setting in my Electron app's dev tools as described here: https://github.com/MarshallOfSound/electron-devtools-installer/issues/36#issuecomment-285956783 Enabling the setting manually is possible, but I'd…
jtbandes
  • 115,675
  • 35
  • 233
  • 266
0
votes
0 answers

How to get the DOM.shadowRootPushed event from chrome?

I've been trying to get the DOM.shadowRootPushed event using the CDPSession from puppeteer. Here's the page that is loaded with contains the shadowRoot: Page with Shadow Root
Pallav Jha
  • 3,409
  • 3
  • 29
  • 52
0
votes
0 answers

Type in chromedp with the keycode from client

I have a piece of code in javascript that sends a request to the server with a list of my keypresses. The way I get the keycodes is like this: window.onkeypress = function (event) { keypresses.push(event.which); } On my golang code, I'm…
Eric.M
  • 827
  • 1
  • 14
  • 29
0
votes
1 answer

Get response body data for a Network request in DevTools in java

Please help to get the response body(as json) for an intercepted request using Devtools Network. Below is the code I could attempt. Thanks! devTools.addListener(Network.requestWillBeSent(), entry -> { Request…