[🚀 Feature]: Change Selenium Manager PATH behavior

Aperta
#17,554 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Ambito
tooling

Direzione di ricerca

Inizia individuando la gestione di PATH-driver di Selenium Manager e il branch utilizzato quando viene specificata una versione del driver. Conferma l’ordine esistente di selezione del browser e il comportamento del confronto delle versioni; il lavoro è completato quando è garantito il driver disponibile più corretto per il browser selezionato, anche quando un PATH-driver non è sincronizzato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
34.6k
Fork
8.7k
Merge medio
1g 16h
PR unite (30g)
107

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SeleniumHQ/selenium

Tutte le issue di SeleniumHQ/selenium

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.