Cypress version ^3.8.3
Using Chrome I am able to setup and attached to the Remote Debugging Port.
In cypress/plugins/index.js
if (browser.name === "chrome") {
args.push("--remote-debugging-port=9222");
return args;
}
When starting a cypress run I can then prefix with the environment variable CYPRESS_REMOTE_DEBUGGING_PORT=9222
.
However, when I try and do similar with Electron, I never get a connection.
if (browser.name === "electron") {
args.webPreferences = {
remoteDebuggingPort: 9222
};
//----OR------
args.remoteDebuggingPort = 9222;
return args;
}
I feel like I'm missing something very simple! Any ideas on how to get Cypress Electron running the remote debug port, would be great!