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

Chromium DevTools Protocol - deleteCookies - does not want to work

I'm trying to use Chromium DevTools protocol in CEF, more precisely the "Network.deleteCookies" method: https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-clearBrowserCookies 1.First I upload stackoverflow.com and I log in on it…
0
votes
0 answers

Chromium DevTools Protocol - deleteCookies

I'm trying to use Chromium DevTools protocol, more precisely the Network.deleteCookies method: https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-clearBrowserCookies And it seems like in the description of the method it is…
0
votes
2 answers

How can I access Chrome Devtools Network Logs data in NodeJS script?

I'm currently trying to build a project that requires me to read data from a website (OpenSea marketplace). When I go to the page, it sends a POST request to an API (in pic 1), I want to access the data it returns (in pic 2) in my NodeJS/TypeScript…
0
votes
1 answer

Unable to Create Session using org.openqa.selenium.devtools.DevTools.createSession

When I run the sample program below: import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.devtools.DevTools; import org.openqa.selenium.devtools.v101.security.Security; import…
0
votes
0 answers

Chrome DevTools: Understanding the Initiator

I'm trying to understand the initiator column in Google Chrome Dev. When I visit facebook.com, in the initiator column I see this output. When you hold shift and hover over the requests, the parent of requests will be marked as green. However, in my…
0
votes
3 answers

Network emulation with Chrome DevTools

I'm currently using version 4.0.0-alpha5 of the Selenium Webdriver NuGet package. So this code only works when the DevTools are open in Chrome Version 98, but I don't understand why. As far as I know, should this always work, but the only thing that…
0
votes
0 answers

If you specify clip (viewport) when taking a screenshot with Chrome DevTools, a pure white image will be output

I'm writing an application using WebView2 in VB.net. I want to save a screenshot of a certain area displayed in WebView2 to an image using chrome DevTool. The screenshot of the displayed part was saved successfully. However, after specifying clip…
0
votes
1 answer

Get HTML from Google Chrome's opened tab in Node.js

Let's say I have 2 following tabs opened in a Google Chrome browser: https://github.com https://stackoverflow.com Now, from the Node.js, I want to get access to the entire HTML of any of the tab. Is it possible? I think that is possible to do it…
feerlay
  • 2,286
  • 5
  • 23
  • 47
0
votes
1 answer

Chrome DevTools Protocol - Network Events after page load

I'm trying to use the chrome-remote-interface package to register URL's requested by a page, through the Chrome DevTools Protocol. It works fine until the page loads. After the page loads, I can't get the requests. For example: Ajax, Google…
0
votes
1 answer

executing javascript code thought chrome dev tools protocol

I'm trying to execute some javascript code through CDTP and PyChromeDevTools library. The following code works: from terminal: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 import…
0
votes
1 answer

retrieve html from web page with chrome dev tools

I need to retrive html using chrome dev tools protocol but I have sum problem and the behaviour is not how expected I'm using https://chromedevtools.github.io/devtools-protocol/tot/DOM/#method-getOuterHTML and PyChromeDevTools for manage chrome…
0
votes
1 answer

WebdriverIO: couldn't find executable for firefox browser using default runner (devtools:puppeteer)

I'm using webdriverIO for some automation testing and have recently migrated from 'selenium-standalone' service to default wdio devtools protocol. wdio v.7.16.12 firefox v.95.0.2 From that point I can't start testing with firefox browser: INFO…
antiq
  • 11
  • 5
0
votes
1 answer

Set Devtools Protocol event listener in DevTools-on-DevTools

In DevTools-on-DevTools it's possible to run DevTools protocol commands like this: let Main = await import('./devtools-frontend/front_end/entrypoints/main/main.js'); await…
0
votes
0 answers

C# Selenium 4 - Network requests interception doesn't work in Azure pipeline

I'm trying to extract the JWT within requests we have in our system. When I'm running locally it works great, the code intercepting all requests... When code runs by Azure Pipeline, no requests were intercepted, empty. private static void…
0
votes
1 answer

DevTools windowOpen event not firing from Cef/CefSharp

I'm trying to get the Page.windowOpen event to fire when using CefSharp Here is the sample code let browser = new ChromiumWebBrowser("https://www.google.com") //removed code that waits for browser to load let client =…
OrdinaryOrange
  • 2,420
  • 1
  • 16
  • 25