[🚀 Feature]: [rust] Simplify Selenium Manager output to a single human/application toggle
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with Selenium Manager’s --output handling and the binding consumers referenced in #13989; compare the current logger, shell, json, and mixed contracts with the proposed human/application split. Done means the new contract sends results to stdout, diagnostics to stderr, uses structured application logs, and provides a migration path while the existing flag is deprecated.
Written by the indexing model from the issue text.
Description
Description
Selenium Manager's --output flag has grown by accretion (logger → json/shell → mixed) into four modes that aren't four distinct use cases — they're two use cases with duplicates, and none of them provides the behavior conventionally expected of a CLI tool:
--output |
stdout | stderr | Notes |
|---|---|---|---|
logger |
• result + logs (text) • Streamed |
nothing | • Default |
shell |
• result + INFO logs (text)• Streamed |
• logged errors (text) • Streamed |
• Not currently used • WARN/DEBUG/TRACE logging completely dropped, always (even with --debug) |
json |
• result + logs (JSON) • Buffered |
nothing | • java, py, rb, js (pending #13989) • A crash can lose all logs • result.message intended as the failure reason, but holds the last non-path INFO/ERROR log, even on success |
mixed |
• result (JSON) • Buffered |
• logs (text) • Streamed |
• .NET • error field always holds the last non-path INFO/ERROR log, even on success |
| Proposed CLI default | • result (text) • Buffered |
• logs (text) • Streamed |
• Follows standard conventions |
| Proposed Bindings default | • result (JSON) • Buffered |
• logs (JSON) • Streamed |
• Follows standard conventions • Error information not included in result but obtained from exit code |
I uncovered this issue trying to figure out how to emit a notice about what data is getting sent to Plausible. There is no way to do it that works properly in all the --output modes we support because it conflates concerns that should be independent.
Proposal
Deprecate the --output toggle and replace with an audience target toggle — human vs application — with one consistent discipline underneath:
- Result → stdout, all diagnostics → stderr, always. Not a per-mode choice.
- One toggle selects only the payload shape on stdout: human-readable text (default) vs structured (JSON). (
logger/shellcollapse into human;json/mixedcollapse into application.) - Model the result as data, not a constant-prefixed log line — emit
driver_path/browser_pathdirectly. - Failure is the exit code — the reason is logged to stderr (shown to a CLI user, replayed by a binding), never scraped into the result payload.
- Application mode streams logs on stderr, leaving stdout as the clean result document — and those streamed logs should be structured (one JSON object per line, e.g.
{"level","timestamp","message"}) so bindings can replay them without each writing a text parser.
Relevant context / related issues
- #13989 — "Leverage streaming output in the bindings" (open): the consumer-side tracker. This issue is the producer/contract it depends on; #13989 keeps its per-binding checklist (Ruby/Python/Java/JS pending) and should be updated to consume the new contract rather than today's
mixed.
Have you considered any alternatives or workarounds?
Fix the current --output modes in place rather than adding a new flag. Rejected because --output json/mixed are a consumed contract — Java/Python/Ruby/JS/.NET parse their exact shape — so changing their behavior in place breaks every binding at once. A new flag lets --output keep working through a deprecation window while bindings migrate deliberately. (Selenium Manager is in beta, so flags may change without guarantee, but a deprecation notice on --output still makes the migration explicit rather than silent.)
- Dominant language
- Java
- Stars
- 34.6k
- Forks
- 8.7k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 107
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SeleniumHQ/selenium
-
C-py I-defect
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
SeleniumHQ/selenium#18438 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
SeleniumHQ/selenium#18323 · 1 comment ·
Maintainers usually reply within 1 day
-
B-build C-py I-enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
SeleniumHQ/selenium#18435 · 1 comment ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: Bindings change the user's options when Selenium Manager supplies a browserPossibly taken @Liz-Lian claimed this 2 days ago. OpenC-dotnet C-java C-nodejs C-py C-rb I-defect
Difficulty 4/5 3-5 days Newbie friendliness 45/100
SeleniumHQ/selenium#18428 ·
Maintainers usually reply within 1 day
-
[🐛 Bug]: [rust] Selenium Manager can return a browser from the cache before it finishes copyingPossibly taken @Liz-Lian claimed this 2 days ago. OpenC-rust I-defect
Difficulty 3/5 1-2 days Newbie friendliness 65/100
SeleniumHQ/selenium#18427 ·
Maintainers usually reply within 1 day
All issues in SeleniumHQ/selenium
Similar issues
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
? - Needs Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainers usually reply within 1 day
-
[source-facebook-pages] post stream never returns attachments.media_typePossibly taken @v-k-data claimed this today. Openarea/connectors needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
floci-io/floci#10107 · 1 comment ·
Maintainers usually reply within 1 day