Skip to content

Commit

Permalink
Change access modifier of execute method. (#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 May 26, 2020
1 parent 33e6b07 commit f10105c
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 f10105c

Please sign in to comment.