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

change access modifier of RemoteWebDriver.execute method. #8344

Merged
merged 1 commit into from
May 26, 2020
Merged

change access modifier of RemoteWebDriver.execute method. #8344

merged 1 commit into from
May 26, 2020

Conversation

amitbhoraniya
Copy link
Contributor

@amitbhoraniya amitbhoraniya commented May 26, 2020

Description

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 methods has been replaced by CommandPayload argument, these need to be a protected method to support override. Earlier overridden support was there in selenium version 2 and 3.

Motivation and Context

This is blocker who have extended RemoteWebDriver in their libraries. This change supports migration to selenium 4.
Even now other execute methods are protected, so I don't find any reason to make this method default.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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.
@CLAassistant
Copy link

CLAassistant commented May 26, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

Thank you @amitbhoraniya, congratulations on your first contribution! We hope to see many more 🎉

@diemol diemol merged commit f10105c into SeleniumHQ:master May 26, 2020
titusfortner pushed a commit to titusfortner/selenium that referenced this pull request Aug 13, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants