Skip to content

Commit

Permalink
Change access modifier of execute method. (SeleniumHQ#8344)
Browse files Browse the repository at this point in the history
We have extended RemoteWebDriver and added more capabilities by extending RemoteWebDriver. We have overridden below methods.

```
protected Response execute(String driverCommand, Map<String, ?> parameters) {}
protected Response execute(String command) {}
```

Now these method has been replaced by `CommandPayload` arguments, these need to be a protected method to support override. Earlier it was support in selenium version 2 and 3.
  • Loading branch information
amitbhoraniya authored and titusfortner committed Aug 13, 2020
1 parent 17aa9c7 commit fa2916b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public void setLogLevel(Level level) {
this.level = level;
}

Response execute(CommandPayload payload) {
protected Response execute(CommandPayload payload) {
Command command = new Command(sessionId, payload);
Response response;

Expand Down

0 comments on commit fa2916b

Please sign in to comment.