[📋 ADR]: BiDi implementation boundaries (#17670)

Open
#17,814 4 comments 0 reactions 0 assignees View on GitHub

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

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.network to a neutral wrapper. driver.script and driver.browsing_context still return the bidi modules.
  • 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

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SeleniumHQ/selenium

All issues in SeleniumHQ/selenium

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.