We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c718c0d commit 2f18649Copy full SHA for 2f18649
java/src/org/openqa/selenium/devtools/DevTools.java
@@ -66,8 +66,12 @@ public void disconnectSession() {
66
}
67
68
public <X> X send(Command<X> command) {
69
- Require.nonNull("Command to send", command);
70
- return connection.sendAndWait(cdpSession, command, timeout);
+ return sendWithTimeout(command, this.timeout);
+ }
71
+
72
+ public <X> X sendWithTimeout(Command<X> command, Duration timeout) {
73
+ Require.nonNull("Command to send", command);
74
+ return connection.sendAndWait(cdpSession, command, timeout);
75
76
77
public <X> void addListener(Event<X> event, Consumer<X> handler) {
0 commit comments