[📋 ADR]: BiDi implementation boundaries (#17670)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- csharp, java, javascript, python, ruby
- Domain
- api, developer-experience
Research direction
Start with docs/decisions/17670-bidi-implementation-boundaries.md, especially its Current behavior table and conformance requirements. Then inspect the binding APIs named in this issue: HasBiDi.getBiDi(), driver.network, driver.script, driver.bidi, AsBiDiAsync(), and driver.getBidi(). Done means the applicable surfaces are deprecated or internalized and each binding conforms to the decision without using Beta as an internal convention.
Written by the indexing model from the issue text.
Description
Decision record
docs/decisions/17670-bidi-implementation-boundaries.md (#17670)
Binding implementation
Each binding currently exposes the BiDi implementation off the driver and fails conformance;
bringing it in line is a deprecation-policy change, not a straight removal.
- Java — #17745, #17751
- Python — #17761 (internal layer generated); #18051 (open) moves
driver.networkto a neutral wrapper.driver.scriptanddriver.browsing_contextstill return thebidimodules. - Ruby — PR
- .NET — PR
- JavaScript — #17926
Notes
Scope per binding (from the record's "Current behavior" table — what conformance requires):
| Binding | Non-conforming today | Convergence target |
|---|---|---|
| Java | Driver exposes the raw BiDi connection (HasBiDi.getBiDi()); protocol types are public |
Deprecate HasBiDi.getBiDi(), mark protocol types internal, reach the low-level layer only by composing it with the driver |
| Python | driver.network / driver.script return the low-level bidi-namespaced modules |
Return protocol-neutral wrappers from driver.network / driver.script; mark the bidi modules internal |
| Ruby | Driver exposes a BiDi accessor (driver.bidi) |
Deprecate driver.bidi; expose the low-level layer only via composition (BiDi::Protocol::Network.new(driver)) |
| .NET | Driver extension returns a BiDi type (AsBiDiAsync() → IBiDi) |
Internalize the BiDi type; reach it by composition, not off the driver |
| JavaScript | Driver exposes a BiDi accessor (driver.getBidi()) |
Deprecate driver.getBidi(); expose the low-level layer only via composition |
Marking a surface Beta does not satisfy decision 2 — Beta signals an API becoming supported,
the opposite of internal — so Beta is not an acceptable "internal" convention in review.
Related, tracked separately: all bindings expose a BiDi-named enable option (enableBiDi /
enable_bidi) that the record notes should become protocol-neutral. This overlaps the open
enable_sockets naming discussion, so it is deliberately not checklisted here — it belongs to
whichever record settles that naming.
Generated by Claude Code
- 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