-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
fix: Fix compatibility with latest Selenium snapshots #2249
fix: Fix compatibility with latest Selenium snapshots #2249
Conversation
0dae8da
to
0ee114b
Compare
@@ -133,7 +133,7 @@ protected void setPrivateFieldValue( | |||
ReflectionHelpers.setPrivateFieldValue(cls, this, fieldName, newValue); | |||
} | |||
|
|||
protected Map<String, CommandInfo> getAdditionalCommands() { | |||
public Map<String, CommandInfo> getAdditionalCommands() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume there we can safely delete this getter as it is public now in the parent class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we can, but it will bump the minimal Selenium client version to 4.28.0-SNAPSHOT
, if it's ok, I'll do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets wait until 4.28 is released, so then we could also release a new minor version of java client and set the minimum version there
0ee114b
to
713ea7c
Compare
@@ -192,7 +192,11 @@ private Response createSession(Command command) throws IOException { | |||
} | |||
|
|||
public void refreshAdditionalCommands() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this method is not used anymore then it would probably make sense to mark it deprecated
Change list
Fix compatibility with latest Selenium snapshots.
Types of changes
What types of changes are you proposing/introducing to Java client?
Details
Recently Selenium team has introduced an update for Appium client adding ability to get
additionalCommands
inHttpCommandExecutor
: SeleniumHQ/selenium@59aa1a0.But since new method is
public
and the same Appium method inAppiumCommandExecutor.java
isprotected
, this collision introduces an error at the build stage: