Skip to content

Cypress --browser option not working on Windows for Edge browsers with full path #14716

@SagarGaniga

Description

@SagarGaniga

Current behavior

Facing an issue while launching Edge browsers with the full path on Windows 10 using --browser
I am running the following command:

cypress run --browser "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"

and the output is

We could not identify a known browser at the path you provided: `C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe`

The output from the command we ran was:

 Unable to find browser with path C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe

Desired behavior

Should open edge browser from the given path just like it does for chrome and firefox.

Test code to reproduce

Not dependent on test/specs, I was using the default example folder for this.

Versions

Cypress Version: 6.3.0
Browser: MS Edge 88
OS: Windows 10

Work-around

I Will try to raise a PR with a fix.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions