Skip to content

[πŸ› Bug]: Selenium Should Error if cannot match browserVersionΒ #13418

@titusfortner

Description

@titusfortner

What happened?

Similar to #13352 β€”Β if a user passes in an explicit browserVersion and it cannot be matched for some reason, Selenium should fail instead of using a browser it can find.

How can we reproduce the issue?

selenium-manager", "--browser", "chrome", "--browser-version", "bad", "--language-binding", "ruby", "--output", "mixed", "--debug"]

Relevant log output

DEBUG	chromedriver not found in PATH
DEBUG	chrome detected at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
DEBUG	Running command: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
DEBUG	Output: "Google Chrome 120.0.6099.199 "
DEBUG	Detected browser: chrome 120.0.6099.199
DEBUG	Discovered chrome version (120) different to specified browser version (bad)
WARN	There was an error managing chromedriver (chrome bad not available for download (minimum version: 113)); using driver found in the cache
INFO	Driver path: /Users/titusfortner/.cache/selenium/chromedriver/mac-x64/120.0.6099.109/chromedriver
INFO	Browser path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Operating System

Mac

Selenium version

sm_mixed_output branch

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

n/a

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-rustRust code is mostly Selenium ManagerI-defectSomething is not working as intended

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions