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

How to call this function devtools selenium c#

I am trying to call this method in the devtools protcol Network.setRequestInterception. So Far I have this: IDevTools devTools = driver as IDevTools; DevToolsSession session = devTools.CreateDevToolsSession(); session.Network.Enable(new…
1
vote
2 answers

Where can I found documentation about page lifecycle events?

I am using cdp (https://github.com/mafredri/cdp) in order to use devtools protocol to generate a pdf of a page. But first I need to know when the page is completely loaded. I found that the networkIdle event can help me to know when this occurs.…
1
vote
1 answer

How to parse google chrome performance recording file

Using the puppeteer I recorded the performance file of the…
1
vote
2 answers

How to read chrome console using python without selenium?

I would like to read chrome's js console using Python3 without any webdriver such as selenium (bot detection and stuff). I've tried Chrome DevTools Protocol python libraries such as chromewhip, pychrome and PyChromeDevTools, but I'm unable to read…
1
vote
0 answers

How to mocking Chrome devtools debug target

I'm trying to create a fake debugger target for chrome devtool protocol. I created a simple http server using nodejs and start listing at port 9229 (just like nodejs). I implemented 2 url /json/version & /json which returns exact same response that…
Nauman Umer
  • 1,006
  • 1
  • 11
  • 21
0
votes
0 answers

executing js scripts with Runtime.RemoteObject model objects in Chrome Devtools Protocol

Im working with CDP(Chrome Devtools Protocol) and im getting nodeId's with DOM.querySelector. After getting Runtime.RemoteObject with DOM.resolveNode from nodeId, i want to execute scripts with Runtime.evaluate like elem.click() in javascript. Can i…
0
votes
0 answers

How to use SSL websocket with remote debugging on Google chrome?

Hope doing well. I am going to use SSL web socket for remote debugging on Google Chrome. But in regular, we are using ws://127.0.0.1:9222 for the remote debugging. I will appreciate if you could please help me. Thank…
0
votes
0 answers

Chrome Devtools Protocol - What does the scale parameter do in the clip argument?

I am trying to take the screenshot of an element selected by the user. To take the screenshot, I get the ClientBoundingRect for the element, add scrollX and scrollY to the x and y locations of the ClientBoundingRect and then set the x, y, height,…
0
votes
1 answer

Cannot access Accessibility domain in chrome dev tools protocol

I'm trying to access the Accessibility domain of the dev tools protocol without success. I'm getting: Unchecked runtime.lastError: {"code":-32601,"message":"'Accessibility.getFullAXTree' wasn't found"} I'm able to access other experimental APIs for…
0
votes
0 answers

Puppeteer, the request in Fetch.requestPaused is faster than targetcreated in the browser

Hope doing well. I have created the puppeteer app to intercept the all request/response. The some request aren't intercepted on page.on("request") method and I had to put the code - await targetClient.send("Network.setBypassServiceWorker", { bypass:…
Khoa-ng
  • 1
  • 1
0
votes
1 answer

WebSocketBadStatusException: Handshake status 403 Forbidden -+-+-

I want to debug an H5 page on an Android app, But When I connect the webSocketDebuggerUrl using websocket, it reports an error WebSocketBadStatusException: Handshake status 403 Forbidden -+-+- . May I ask how to resolve this error? Connect an…
xingqu
  • 1
  • 2
0
votes
0 answers

Playwright detected by Chrome Dev Tool Protocol

So how exactly websites detected me? I used some advanced techniques modified the getter function, used context.add_init_script(''' turns webdriver to false, so now i can bypassing all bot detection tests. Here is some perfect testing…
0
votes
0 answers

Modifying http response using chrome.debugger.onEvent with Fetch?

I'm trying to modify http response using chrome.debugger.onEvent with the Chrome DevTools Protocol Fetch API. I tried the the following code, it is intended to modify the response for the request to "https://example.com/" otherwise bypass (set the…
0
votes
1 answer

Access particular DOM object with JavaScript using CDP

I am wondering if I can directly (like window.document.foo.bar) access to a particular node with JavaScript with the given DOM information. I would start the question with the reason why I need this, but you can skip it. Why I need to do this. I…
Jin
  • 304
  • 2
  • 10
0
votes
0 answers

How to implement inspect and highlight functionality from Axe DevTools into my custom DevTools?

I am using the Axe accessibility library to generate accessibility reports for a web application. The reports include code selectors for each accessibility issue, which I would like to use to navigate to the relevant code and highlight the…