Closed
Description
Current behavior
While triggering the build, my ruby script is escaping the backslash making it C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe
. For this path, Cypress launches the browser with an error and can't proceed with tests. Same behavior on MS Edge as well.
Note: Works fine for Firefox
Logs
C:~Path> cypress run --browser "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 6.3.0 │
│ Browser: Custom Chrome │
│ Specs: 19 found (examples\actions.spec.js, examples\aliasing.spec.js, examples\assertions │
│ .spec.js, examples\connectors.spec.js, examples\cookies.spec.js, examples\cypress_ │
│ api.spec.js, examples\files.spec.js, examples\local_storage.spec.js, examples\loca │
│ tion.spec.j...) │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: examples\actions.spec.js (1 of 19)
Timed out waiting for the browser to connect. Retrying...
Timed out waiting for the browser to connect. Retrying again...
The browser never connected. Something is wrong. The tests cannot run. Aborting...
The browser never connected. Something is wrong. The tests cannot run. Aborting...
Screenshot
Works fine when I remove extra \
in the path
C:~Path> cypress run --browser "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Desired behavior
Should launch browser correctly and run tests end to end for all win32 file paths. At lease handle double escapes :)
Test code to reproduce
Just running the default example with --browser
and browser path with \\
, you should get this on a Windows 10 machine very easily.
Versions
Cypress: 6.3.0
OS: Windows 10
Browser: Chrome 87, Edge 88 (Have tried lower version as well)
Activity