Skip to content

Commit 3936678

Browse files
authored
[java] Deprecate methods to avoid internal BiDi connection surfacing on driver (#17751)
1 parent 90cbf90 commit 3936678

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

java/src/org/openqa/selenium/bidi/HasBiDi.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,20 @@
2222

2323
@Beta
2424
public interface HasBiDi {
25+
/**
26+
* @deprecated BiDi is an internal implementation detail. Direct access to the BiDi object from
27+
* drivers will be removed in a future release.
28+
*/
29+
@Deprecated(since = "4.46", forRemoval = true)
2530
default BiDi getBiDi() {
2631
return maybeGetBiDi()
2732
.orElseThrow(() -> new BiDiException("Unable to create a BiDi connection"));
2833
}
2934

35+
/**
36+
* @deprecated BiDi is an internal implementation detail. Direct access to the BiDi object from
37+
* drivers will be removed in a future release.
38+
*/
39+
@Deprecated(since = "4.46", forRemoval = true)
3040
Optional<BiDi> maybeGetBiDi();
3141
}

0 commit comments

Comments
 (0)