Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions java/src/org/openqa/selenium/devtools/DevTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,12 @@ public void disconnectSession() {
}

public <X> X send(Command<X> command) {
Require.nonNull("Command to send", command);
return connection.sendAndWait(cdpSession, command, timeout);
return sendWithTimeout(command, this.timeout);
Copy link
Member

@navin772 navin772 Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this also:

Suggested change
return sendWithTimeout(command, this.timeout);
return send(command, this.timeout);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault, sorry. Updated the PR. 👍

}

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

/**
Expand Down
Loading