-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to the remote-debugging-port via Chome Dev Protocol (CDP) #14835
Comments
This workflow used to work in cypress@6.2.1. Perhaps the use of the |
I too am seeing this behavior on latest. Unable to connect with both chrome and firefox. edit: nevermind it has something to do with my vpn settings still unsure what's going on. |
This is strange, connecting to CDP like this should work. @tomardern Are you waiting for the browser to launch in your and retrying the connection? Is anyone having this issue not on Mac? -- EDIT: also, I see you are trying to collect codecov info via CDP. Cool! If you're not aware, @bahmutov experimented with this a year ago, and got pretty close: https://github.com/bahmutov/cypress-native-chrome-code-coverage-example |
I am also seeing this issue. Running My chrome configuration:
Running I can see that Cypress attempts to start the chrome debugger with the following flags:
Immediately following is:
Cypress then times out. |
What I've found out, in hosts file, my localhost address 127.0.0.1 were available only under prefixed name (127.0.0.1 docker.internal) and was commented out for a default 127.0.0.1 localhost name. After changing it, works as expected 👍 |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Current behavior
I am trying to use Chrome Dev Protocol (CDP) to connect to the spawned Chrome Instance via
$(npm bin)/cypress open
. The overall aim, is to run the built in chrome V8 profiler to get the code coverage for all the files.To find the port, I've added the following to
plugins/index
:Which returns the following:
However, when I try and connect to the spawned CDP (either by opening
http://127.0.0.1:64739
) or even just running the Port Scan utility on Mac OSX Catalina, I'm unable to see CDP running, and unable to connect.Interestingly, adding the following to my test script shows the console message, so I presume that Chrome Devtools Protocol is available, just not accessible outside of Cypress.
Desired behavior
Able to connnect to Cypress's spawned Chrome instance via CDP.
Test code to reproduce
(Any basic cypress install, with the above changes in
plugins/index
Versions
Cypress: 6.3.0
Node: (12.18.3)
Chrome: Version 88.0.4324.96 (Official Build) (x86_64)
Mac: MacOSX Catalina 10.15.1
The text was updated successfully, but these errors were encountered: