Questions tagged [chrome-remote-debugging]

Chrome remote debugging utilises the chrome remote debugging interface to connections to a remotely running instance of Chrome and remote control of that instance. This can be used by test automation drivers like Selenium when interacting with Chrome.

49 questions
37
votes
5 answers

How to make Chrome always launch with remote-debugging-port flag

I know I can launch chrome the following way to open a remote debugging port at 9222 port - chrome.exe --remote-debugging-port=9222 But I want to setup Chrome such that whenever it is launched by any other application, it always opens with the…
Shadab
  • 661
  • 1
  • 5
  • 17
6
votes
1 answer

How to set the device type (to not mobile) when inspecting a remote target with Chrome DevTools?

So it seems that the device toolbar usually present in any regular DevTools instance is missing when inspecting a remote instance. And in such cases the device type is set to "Mobile", with the mouse pointer set to a circle, as to indicate…
cYrus
  • 2,976
  • 6
  • 29
  • 47
4
votes
1 answer

NodeJS - Error: connect ECONNREFUSED 127.0.0.1:port (chrome-remote-interface)

I made a script using chrome-launcher and chrome-remote-interface to save a webpage to pdf using Chrome. It works without any issue on my Windows machine, but when I try it on CentOS 7, I obtain the following error and I can't figure out why. Both…
4
votes
0 answers

Remote debugging the Samsung Internet App

I've recently managed to get a desktop development machine to recognise a connected Samsung Galaxy Tab for remote debugging. The html bug I'm trying to inspect and, hopefully, fix is a layout issue that occurs only in the pre-loaded Samsung…
3
votes
1 answer

chrome://inspect/#devices shows device but no open chrome tabs

I am trying to debug my web application. In the chrome://inspect/#devices tab I can see my device and in adb devices too, the problem is that the chrome tabs that I open on the mobile are not shown. I have USB debugging enabled. Any ideas? Thank you…
3
votes
1 answer

send/receive messages from my android application to chrome

I am trying to establish a connection between my android application and chrome on android. I am using LocalSocket for socket communication as below: JSONObject request = new JSONObject(); request.put("method", "Page.reload"); …
mdasari
  • 423
  • 4
  • 11
2
votes
1 answer

chrome remote interface client.Network is undefined

I have the following code example from the CDP page https://github.com/cyrus-and/chrome-remote-interface/wiki/Async-await-example const CDP = require('chrome-remote-interface'); async function example() { let client; try { //…
Limbo
  • 623
  • 8
  • 24
2
votes
1 answer

Is it possible to remotely track the GUI of chromium when running in headless mode?

I'm running puppeteer on AWS EC2 AMI (Linux) in headless mode to do some web scraping. Is it possible to track the GUI of it remotely, maybe from my local Windows setup? I referred to this article and was wondering if adding…
2
votes
0 answers

How to debug why a font fallback is used

My specific situation is this: Certain symbol type fonts don't load on my chromium kiosk (eg: webdings/wingdings) When I access the web server on chrome or chromium on my dev machine I can see the fonts just fine. When I open a remote debugging…
justFatLard
  • 482
  • 5
  • 9
2
votes
1 answer

Is it possible to detect chrome remote debugger or automation enabled

Is it possible to detect if a website visitors chrome browser is being controlled by another program via the chrome remote debugging (aka DevTools Protocol) protocol? Is there any other way to detect if a users chrome browser is using the startup…
2
votes
0 answers

Android device recognized by adb but not recognized by Chrome development tools

I have an Android device recognized by adb devices but not recognized by chrome development tools (with or without discover USB devices checked). My machine development is a Mac and I have installed Android Studio 3.1 Installed SDK platforms…
2
votes
0 answers

Chrome Remote Interface Error: Unknown command: protocol

I was trying to use chrome-remote-interface sample in windows, but unable to produce the result with an error Error: Unknown command: protocol at IncomingMessage.
2
votes
1 answer

How to get multiple DOM elements with chrome-remote-interface node js?

I am just trying to build a crawler with chrome-remote-interface but i don't know how to get multiple dom elements like specific targets id,classes. for Ex: price = document.getelementbyid('price') name= document.getelementbyid('name') Code …
Nane
  • 2,370
  • 6
  • 34
  • 74
2
votes
0 answers

chrome developer remote debugging does not screen cast my mobile screen

When I try to debug my cordova applicaton: cordova run android I run it on android USB connected device. I open the chrome remote desktop: chrome://inspect/#devices It shows me my connected device. I click on inspect : it opens the remote debuuger…
yarek
  • 11,278
  • 30
  • 120
  • 219
1
vote
0 answers

Unable to interact with element using selenium after connecting to remote debugging Frontend URL

I am unable to interact with element in UI after connecting to devtoolsFrontendUrl after using remote-debugging. But issue is not faced if I have not connected to devtoolsFrontendUrl. My script: webdriver = require("selenium-webdriver"); const…
1
2 3 4