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

[java] change access modifier of RemoteWebElement.execute method #8398

Merged
merged 1 commit into from
Jun 8, 2020
Merged

[java] change access modifier of RemoteWebElement.execute method #8398

merged 1 commit into from
Jun 8, 2020

Conversation

amitbhoraniya
Copy link
Contributor

Description

We have extended RemoteWebElement and added more capabilities by extending RemoteWebElement. Like Appium has extended RemoteWebElement and created MobileElement. We have overridden below method.

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

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.

Previously I have created pull request #8344 for RemoteWebDriver. Sorry at that time I didn't notice same issue with RemoteWebElement.

Motivation and Context

This is blocker who have extended RemoteWebElement 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 RemoteWebElement and added more capabilities by extending RemoteWebElement. We have overridden `execute` method.

Now this 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.
@AutomatedTester AutomatedTester merged commit 6828f52 into SeleniumHQ:master Jun 8, 2020
@AutomatedTester
Copy link
Member

Thanks for the PR!

@amitbhoraniya amitbhoraniya deleted the patch-2 branch June 9, 2020 08:05
titusfortner pushed a commit to titusfortner/selenium that referenced this pull request Aug 13, 2020
…eniumHQ#8398)

We have extended RemoteWebElement and added more capabilities by extending RemoteWebElement. We have overridden `execute` method.

Now this 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.

2 participants