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

Is there a way to get a list of all context Ids in the google Devtools console?

In my automation I am trying to use the chrome devtools protocol to set the localStorage as I need to set it on a subdomain and not the primary domain. I am able to do this by going to the specific iframe context in the console in dev tools and…
0
votes
1 answer

Protractor - get result of sendChromiumCommand

The goal: obtain a result of chromium command execution, e.g. Profiler report data What I've done: I'm able to call chrome devtools command using browser.driver.sendChromiumCommand. E.g. await browser.driver.sendChromiumCommand('Page.reload', {})…
0
votes
1 answer

Debugger.paused event not being thrown in CDP

I am trying to pause all tab's execution using Chrome DevTools protocol. For that I iterate over all the tabs to get the CDP client for each tab and then send a request to pause JS on every tab. I see it resolve for some tabs properly but not all of…
0
votes
1 answer

chromedp fails to start a new instance of chrome

Hey guys I have been trying to automate a task on my browser's machine using chromedp. I tried examples on the repo however they always fail: unexpected fault address 0x7f7a36461000 fatal error: fault [signal SIGBUS: bus error code=0x2…
Oussama Ben Ghorbel
  • 2,132
  • 4
  • 17
  • 34
0
votes
0 answers

Is it possible to use "Runtime.addBinding" of CDP method two times in only one CDP Session?

I need to investigate two functions in different "bindingCalled" event. I want to learn whether it is possible?
0
votes
1 answer

C# Selenium Chrome Devtools Protocol

I am trying to use this devtools protcol command: Page.AddScriptToEvaluateOnNewDocument. It seems that this protocol command is not fully implemented in the c# version of selenium. I also tried the click event too, but this didn't work as well.…
0
votes
0 answers

How to show your own data in chrome dev tools

Lets say I managed to get (and store) the console output, network traffic, cookies and the HTML of site A (by using an extension or/plus a script). Now I have all these logs and want to show them on site B as if they were the actual logs of site B,…
0
votes
1 answer

What does "requestTime" number mean in Chrome DevTools?

According Chrome DevTools Protocol viewer the value of requestTime is a baseline in seconds. To understand it I took this value from few web pages and for all of them the value of requestTime was unexpectedly large. For example one of them was…
0
votes
1 answer

Chrome DevTools Protocol: `Network.setCookie({ sameSite: 'None' })` fails, why?

I'm having an issue where the Chrome DevTools Protocol returns { success: false } when sending a Network.setCookie request with sameSite set to "None". What could the issue be? "Lax" and "Strict" appear to work fine.
Zach Bloomquist
  • 5,309
  • 29
  • 44
0
votes
0 answers

How to use different Chrome devtools protocol version

I want to use some of the experimental features of Chrome DevTools protocol such as DOMSnapshot.getSnapshot. Right now no matter how I open chrome in the remote mode it always opens in Protocol-Version: 1.3 I have tried chrome-dev chrome-canary.…
0
votes
1 answer

CDP filter Network requests - Puppteer

I am trying to get timing of a specific network request with Puppteer. Is there any way to filter requests from Chrome DevTools Protocol in Puppteer, so that responseReceived will be fired only when this specific network response is received? My…
0
votes
1 answer

Chrome DevTools Protocol addScriptToEvaluateOnNewDocument using ruby chrome_remote

So I am trying to inject a script to run on any page using addScriptToEvaluateOnNewDocument on chrome 79, but it doesn't seem to be working. I am using the ruby gem chrome_remote, which gives a pretty basic access to the CDP. Here is an example…
Dan Pisarski
  • 337
  • 1
  • 2
  • 10
0
votes
0 answers

Sum of 'dur' in Complete Events of Chrome Dev tools trace file

I have the trace file from chrome dev tools for a specific workflow of my web app. I'm trying to figure out the total time taken by the workflow. I'm doing this using a Puppeteer script and it's trace feature. I read through the trace file JSON,…
0
votes
1 answer

Using Puppeteer & Chrome DevTools Protocol, how to get the 4 Performance Timing metrics?

To create the below screenshot, I have opened the Chrome Developer Tools, selected the "Performance" tab, started a recording, opened https://www.ted.com, and then stopped the recording. This is what I see: How can I programatically using Puppeteer…
aBlaze
  • 2,436
  • 2
  • 31
  • 63
0
votes
1 answer

chromedp getting invalid CSRF token errors; Puppeteer and the browser are OK

I'm using chromedp to test my Go-based website. While I've managed to do basic login tests with it, I'm getting CSRF errors when I try to sign out of an account that I've just logged in as. Here's the test function that's getting the CSRF error and…
adiabatic
  • 398
  • 2
  • 10
1 2 3
12
13