Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sending DevTools command with custom timeout. #15059

4 changes: 4 additions & 0 deletions java/src/org/openqa/selenium/devtools/DevTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ public void disconnectSession() {
}

public <X> X send(Command<X> command) {
return send(command, this.timeout);
}

public <X> X send(Command<X> command, Duration timeout) {
Require.nonNull("Command to send", command);
return connection.sendAndWait(cdpSession, command, timeout);
}
Expand Down
Loading