Skip to content

Commit 0f71ed6

Browse files
authored
restore BiDi constructor without timeout parameter (#17014)
This constructor has been used in Appium (not anymore), and probably some other projects. Let it stay deprecated until Selenium 5.0
1 parent 658c69f commit 0f71ed6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ public class BiDi implements Closeable {
3030
private final Duration timeout;
3131
private final Connection connection;
3232

33+
/**
34+
* @deprecated Use constructor with timeout parameter: {@link #BiDi(Connection, Duration)}
35+
*/
36+
@Deprecated(forRemoval = true)
37+
public BiDi(Connection connection) {
38+
this(connection, Duration.ofSeconds(30));
39+
}
40+
3341
public BiDi(Connection connection, Duration timeout) {
3442
this.connection = Require.nonNull("WebSocket connection", connection);
3543
this.timeout = Require.nonNull("WebSocket timeout", timeout);

0 commit comments

Comments
 (0)