[🚀 Feature]: Add support for chrome-headless-shell to Selenium Manager
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- tooling
Hướng nghiên cứu
Trước tiên, hãy đọc phần phát hiện Chrome và xử lý tải xuống hiện có của Selenium Manager, sau đó theo dõi cách các tùy chọn trình duyệt được truyền đến các triển khai Selenium. So sánh việc hỗ trợ chrome-headless-shell độc lập với việc tải cả hai tệp nhị phân; công việc được xem là hoàn tất khi phương án được chọn tải xuống và xác định đúng tệp nhị phân tương ứng một cách đáng tin cậy trên tất cả các nền tảng được hỗ trợ, đồng thời xử lý phía Selenium khi cần.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
Previously it was decided in #13600 (2024-03) that chrome-headless-shell shall not be supported by Selenium Manager, due to it being part of the main chrome binary.
There's nothing separate to download, it's part of the Chrome installation, and there's not a good reason to support this independently.
This is no longer true, as --headless=old is no longer supported as of Chrome 132 (2025-01-14):
We're happy to announce that the old Headless mode will be removed in Chrome 132.
And:
If you are using old Headless functionality you should now migrate to chrome-headless-shell (to retain old Headless functionality) or to the new Headless mode, which continues to be provided by the Chrome binary.
While new headless mode is suitable for full CI testing, the old headless mode is significantly faster, making it a much better fit for iterative TDD testing when browser interactions are under test.
Feature Request
Selenium Manager should either:
- fetch both binaries when chrome is specified
or
- provide support for chrome-headless-shell as a standalone browser option
In either case, it seems likely that Selenium implementations will also need to adjust to handle the separate binaries (perhaps by noticing --headless=old and switching binaries?), but that seems like a secondary task dependent on SM supporting autodownloads of both binaries.
Have you considered any alternatives or workarounds?
The current workaround I've come up with is to install the chrome-headless-shell binary myself, and specify that as the binary to use when running Selenium. eg.
browser_options = Selenium::WebDriver::Chrome::Options.new
browser_options.binary = '/some/path/to/binary/chrome-headless-shell'
# Using Capybara + Selenium, but the point applies regardless of testing engine
Capybara::Selenium::Driver.new(app, browser: :chrome_headless_shell, options: browser_options)
I've put together a rickety emulation of SM's autodownload behaviour that attempts to match the installed Chrome version, but makes no attempt to be cross-platform nor support most browsers.
This is obviously not as robust as Selenium Manager handling it properly, but it does work for now and avoids a hardcoded local path and (some) manual updates.
- Ngôn ngữ chính
- Java
- Star
- 34.6k
- Fork
- 8.7k
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 107
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SeleniumHQ/selenium
-
C-py I-defect
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
SeleniumHQ/selenium#18438 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
SeleniumHQ/selenium#18323 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
B-build C-py I-enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
SeleniumHQ/selenium#18435 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[🐛 Bug]: Bindings change the user's options when Selenium Manager supplies a browserCó thể đã có người làm @Liz-Lian đã nhận 2 ngày trước. Đang mởC-dotnet C-java C-nodejs C-py C-rb I-defect
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
SeleniumHQ/selenium#18428 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[🐛 Bug]: [rust] Selenium Manager can return a browser from the cache before it finishes copyingCó thể đã có người làm @Liz-Lian đã nhận 2 ngày trước. Đang mởC-rust I-defect
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
SeleniumHQ/selenium#18427 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của SeleniumHQ/selenium
Issue tương tự
-
area-integrations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
? - Needs Triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[source-facebook-pages] post stream never returns attachments.media_typeCó thể đã có người làm @v-k-data đã nhận hôm nay. Đang mởarea/connectors needs-triage type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
floci-io/floci#10107 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày