Skip to content

[🐛 Bug]: Selenium Manager not getting Chromium version number #11884

@titusfortner

Description

@titusfortner

What happened?

Trying to use a chromium implementation instead of Chrome. I believe this feature is currently only implemented in Ruby.

Finally got it tested on Mac and it is working, so just a Windows issue.

How can we reproduce the issue?

options = Selenium::WebDriver::Options.chrome(binary: 'C:\chrome-win\chrome.exe')
    driver = Selenium::WebDriver.for :chrome, options: options

Relevant log output

2023-04-11 13:48:57 WARN Selenium applicable driver not found; attempting to install with Selenium Manager
2023-04-11 13:48:57 DEBUG Selenium Selenium Manager found at C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/selenium-webdriver-4.8.6/bin/windows/selenium-manager.exe
2023-04-11 13:48:57 DEBUG Selenium Executing Process ["C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/selenium-webdriver-4.8.6/bin/windows/selenium-manager.exe", "--browser", "chrome", "--output", "json", "--browser-path", "C:\\chrome-win\\chrome.exe", "--debug"]
2023-04-11 13:48:57 DEBUG Selenium Using shell command to find out chrome version
2023-04-11 13:48:57 DEBUG Selenium Running command: "wmic datafile where name='C:\\chrome-win\\chrome.exe' get Version /value"
2023-04-11 13:48:57 DEBUG Selenium Output: "\r\r\n\r\r\n\r"
2023-04-11 13:48:57 DEBUG Selenium The version of chrome cannot be detected. Trying with latest driver version

Operating System

Windows 11

Selenium version

Ruby 4.8.6

What are the browser(s) and version(s) where you see this issue?

Chromium 107

What are the browser driver(s) and version(s) where you see this issue?

n/a

Are you using Selenium Grid?

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions