[🚀 Feature]: Change Selenium Manager PATH behavior

オープン
#17,554 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
領域
tooling

調査の方向性

まず、Selenium Manager の PATH-driver 処理と、driver のバージョンが指定された場合に使用される branch を確認します。既存のブラウザー選択順序とバージョン比較の動作を確認してください。完了とは、PATH-driver の同期が取れていない場合も含め、選択されたブラウザーに対して利用可能な最も適切な driver が確実に選択されることを意味します。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
34.6k
フォーク
8.7k
平均マージ
1日 16時間
マージ済み PR(30日)
107

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SeleniumHQ/selenium のほかの issue

SeleniumHQ/selenium の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。