[🚀 Feature]: Add support for chrome-headless-shell to Selenium Manager
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- tooling
Línea de trabajo
Empieza leyendo la detección y el manejo de descargas existentes de Chrome en Selenium Manager; después, sigue cómo llegan las opciones del navegador a las implementaciones de Selenium. Compara la compatibilidad con chrome-headless-shell independiente con la obtención de ambos binarios; se considerará terminado cuando el enfoque seleccionado descargue y resuelva de forma fiable el binario correspondiente en todas las plataformas compatibles, con el manejo del lado de Selenium abordado según sea necesario.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 34.6k
- Forks
- 8.7k
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 107
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SeleniumHQ/selenium
-
C-py I-defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
SeleniumHQ/selenium#18438 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
SeleniumHQ/selenium#18323 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
B-build C-py I-enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
SeleniumHQ/selenium#18435 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[🐛 Bug]: Bindings change the user's options when Selenium Manager supplies a browserPosiblemente ocupada @Liz-Lian la tomó hace 2 días. AbiertoC-dotnet C-java C-nodejs C-py C-rb I-defect
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
SeleniumHQ/selenium#18428 ·
Los mantenedores suelen responder en 1 día
-
[🐛 Bug]: [rust] Selenium Manager can return a browser from the cache before it finishes copyingPosiblemente ocupada @Liz-Lian la tomó hace 2 días. AbiertoC-rust I-defect
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
SeleniumHQ/selenium#18427 ·
Los mantenedores suelen responder en 1 día
Todos los issues de SeleniumHQ/selenium
Issues similares
-
area-integrations
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
? - Needs Triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA/cudf-spark-jni#5598 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
oracle/graalvm-reachability-metadata#12264 ·
Los mantenedores suelen responder en 1 día
-
[source-facebook-pages] post stream never returns attachments.media_typePosiblemente ocupada @v-k-data la tomó hoy. Abiertoarea/connectors needs-triage type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
floci-io/floci#10107 · 1 comentario ·
Los mantenedores suelen responder en 1 día