Open lhidalgomqa opened 3 months ago
Possible Enhancement: Cypress should, when installing the cypress package, bring a browser kit with its installation. This kit would be with the main browsers. Currently this is done in playwright, both playwright and the browsers are installed and thus can be used in isolation with test automation. If we depend on the browsers installed on the machines, more problems occur. Thanks for your time.
@lhidalgomqa We did have a proposal to include a browser kit, it would be quite a lot of work for us to implement.
Does the edge browser work if you just run cypress run --browser=edge
by itself? or firefox? There are a lot of variables involved here, so it'd be ideal to narrow them down.
Also, what version of Cypress are you using? 14.12.0 is not a version that exists. Please make sure you're using the latest (13.13.0)
Hello! if i try execute: npx cypress run --browser edge, returns:
PS C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter> npx cypress run --browser edge
DevTools listening on ws://127.0.0.1:60196/devtools/browser/c82f4a37-e64c-4381-bce8-7400f2fc4131
Loading C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter\pre.settings.json
Environment settings loaded successfully.
Using browser: chrome
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 13.12.0 │
│ Browser: Edge 126 (headless) │
│ Node Version: v20.14.0 (C:\Program Files\nodejs\node.exe) │
│ Specs: 3 found (1_busqueda_guia_medica.cy.js, 2_contratacion_poliza.cy.js, actions.cy │
│ .js) │
│ Searched: cypress/e2e/*.{js,jsx,ts,tsx} │
│ Experiments: experimentalInteractiveRunEvents=true,experimentalModifyObstructiveThirdParty… │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
The event 'before:run' has been activated correctly.
The folder C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter\cypress\resultados does not exist. No action has been taken.
The folder C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter\cypress\screenshots does not exist. No action has been taken.
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: 1_busqueda_guia_medica.cy.js (1 of 3)
Still waiting to connect to Edge, retrying in 1 second (attempt 18/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 19/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 20/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 21/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 22/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 23/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 24/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 25/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 26/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 27/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 28/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 29/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 30/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 31/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 32/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 33/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 34/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 35/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 36/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 37/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 38/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 39/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 40/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 41/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 42/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 43/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 44/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 45/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 46/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 47/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 48/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 49/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 50/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 51/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 52/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 53/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 54/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 55/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 56/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 57/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 58/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 59/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 60/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 61/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 62/62)
Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds.
This usually indicates there was a problem opening the Edge browser.
The CDP port requested was 52318.
Error: connect ECONNREFUSED 127.0.0.1:52318
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
Cypress version: 13.12.0
If i try to update cypress, after make the update to 13.13.0:
PS C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter> npx cypress run --browser edge
It looks like this is your first time using Cypress: 13.13.0
✔ Verified Cypress! C:\Users\lhidalgom\AppData\Local\Cypress\Cache\13.13.0\Cypress
Opening Cypress...
DevTools listening on ws://127.0.0.1:55346/devtools/browser/586b497f-6cfa-4cfc-9a34-e33ff1998c47
Loading C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter\pre.settings.json
Environment settings loaded successfully.
Using browser: chrome
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 13.13.0 │
│ Browser: Edge 126 (headless) │
│ Node Version: v20.14.0 (C:\Program Files\nodejs\node.exe) │
│ Specs: 3 found (1_busqueda_guia_medica.cy.js, 2_contratacion_poliza.cy.js, actions.cy │
│ .js) │
│ Searched: cypress/e2e/*.{js,jsx,ts,tsx} │
│ Experiments: experimentalInteractiveRunEvents=true,experimentalModifyObstructiveThirdParty… │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
The event 'before:run' has been activated correctly.
The folder C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter\cypress\resultados does not exist. No action has been taken.
The folder C:\Users\lhidalgom\Documents\workspace\infra\mediadores-multireporter\cypress\screenshots does not exist. No action has been taken.
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: 1_busqueda_guia_medica.cy.js (1 of 3)
Still waiting to connect to Edge, retrying in 1 second (attempt 18/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 19/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 20/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 21/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 22/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 23/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 24/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 25/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 26/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 27/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 28/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 29/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 30/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 31/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 32/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 33/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 34/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 35/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 36/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 37/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 38/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 39/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 40/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 41/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 42/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 43/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 44/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 45/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 46/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 47/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 48/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 49/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 50/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 51/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 52/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 53/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 54/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 55/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 56/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 57/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 58/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 59/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 60/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 61/62)
Still waiting to connect to Edge, retrying in 1 second (attempt 62/62)
Cypress failed to make a connection to the Chrome DevTools Protocol after retrying for 50 seconds.
This usually indicates there was a problem opening the Edge browser.
The CDP port requested was 55356.
Error: connect ECONNREFUSED 127.0.0.1:55356
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
Could you please check if you replay the problem? Thanks :)
Could you run Cypress in debug mode mode and print the entire set of logs here?
Current behavior
cross-env
to use several envs and browsers. (https://www.npmjs.com/package/cross-env).name-example-test.cy.js
).cypress.config.js
the following code:pre.settings.json
/dev.settings.json
/prod.settings.json
with the following scheme:second:
third:
Problem 1: returns an error:
Problem 2: If you put in BROWSER = "firefox" doesn't recognize the browser.
Desired behavior
Test code to reproduce
try to execute the steps.
Cypress Version
14.12.0
Node version
20.14.0
Operating System
windows 10
Debug Logs
Other
No response