[🚀 Feature]: Change Selenium Manager PATH behavior

Open
#17,554 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Domain
tooling

Research direction

Start by locating Selenium Manager's PATH-driver handling and the branch used when a driver version is specified. Confirm the existing browser-selection order and version comparison behavior; done means the selected browser's most correct available driver is ensured, including when a PATH driver is out of sync.

Written by the indexing model from the issue text.

Description

A-needs decision B-manager I-enhancement
Description

The original plan for the selenium manager contract was for it to be opt-in while in beta and then the full release would be opt-out

When we moved PATH detection from bindings to Selenium Manager, we broke this contract a little bit for convenience sake when there weren't side-effects. But, for instance, when we added plausible integration, we didn't exempt drivers found on path from that flow, which further eroded the original contract.

I think there is only one place remaining where we make a distinction, and I think it has become a distinction without a difference.

Right now if SM finds a driver on PATH it will use it unless the user has specified a version in their options class.
If the driver version does not match the browser SM detects on the system it doesn't download a new driver, it just logs a warning, even though we know that it will error.

This is intentional because of the contract we agreed to at the beginning: if user is managing the drivers themselves, SM must respect it.

The actually desired implementation is in order:

  • use browser with specified version
  • use browser installed on system
  • use latest stable browser
    Then download browser if necessary and always ensure the most correct driver for that browser we can provide (lots of edge cases here but we handle these pretty well right now)

I can't think of a scenario where making this change now negatively impacts users. The biggest change is that many users with slightly out of sync driver/browser versions will have more correct driver versions downloaded now, and fixing it will be a good thing.

Have you considered any alternatives or workarounds?

No response

Dominant language
Java
Stars
34.6k
Forks
8.7k
Avg merge
1d 16h
Merged PRs (30d)
107

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SeleniumHQ/selenium

All issues in SeleniumHQ/selenium

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.