Skip to content

[🐛 Bug]: selenium-manager returns multiple lines when chromedriver has been installed through npm #11745

@cosmo0

Description

@cosmo0

What happened?

Source of the issue of SeleniumHQ/selenium-ide#1594

With a certain configuration (see below) selenium-manager returns multiple lines, and selenium-side-runner cannot process it because it expects a single result, on a single line.

selenium-side-runner could be changed to process multiple lines, but the first line returned by selenium-manager is the Unix shell script (installed by npm), which is obviously not runnable on Windows. So it's not possible to know which line is the right one.

How can we reproduce the issue?

As per the documentation: https://www.selenium.dev/selenium-ide/docs/en/introduction/command-line-runner

  • Install ChromeDriver through npm: npm install -g chromedriver
  • Run selenium-manager.exe -b chrome

=> multiple lines are returned.

> npm install -g chromedriver
> .\selenium-manager.exe -b chrome
 INFO    D:\Users\cosmo\AppData\Roaming\npm\chromedriver
 D:\Users\cosmo\AppData\Roaming\npm\chromedriver.cmd

If I uninstall the npm chromedriver, it returns a completely different output.

> npm uninstall -g chromedriver
> .\selenium-manager.exe -b chrome
INFO    D:\Users\cosmo\.cache\selenium\chromedriver\win32\110.0.5481.77\chromedriver.exe`

Operating System

Windows 10

Selenium version

selenium-side-runner 4.0.0-alpha.42
selenium-manager 1.0.0-M3

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-rustRust code is mostly Selenium ManagerI-defectSomething is not working as intended

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions