Skip to content

Commit 7e194df

Browse files
dennisoelkerspujaganidiemol
authored
Allow sending DevTools command with custom timeout. (#15059)
* Allow sending DevTools command with custom timeout. * Renaming method to `send`. * Using correct method in default `send`. * Fixing formatting. --------- Co-authored-by: Puja Jagani <puja.jagani93@gmail.com> Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent fc463fd commit 7e194df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/src/org/openqa/selenium/devtools/DevTools.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public void disconnectSession() {
8686
}
8787

8888
public <X> X send(Command<X> command) {
89+
return send(command, this.timeout);
90+
}
91+
92+
public <X> X send(Command<X> command, Duration timeout) {
8993
Require.nonNull("Command to send", command);
9094
return connection.sendAndWait(cdpSession, command, timeout);
9195
}

0 commit comments

Comments
 (0)