-
-
Notifications
You must be signed in to change notification settings - Fork 768
fix: Fix compatibility with latest Selenium snapshots #2249
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
//noinspection unchecked | ||
return getPrivateFieldValue(HttpCommandExecutor.class, "additionalCommands", Map.class); | ||
} | ||
|
@@ -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 commentThe 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 |
||
getAdditionalCommands().forEach(this::defineCommand); | ||
getAdditionalCommands().forEach(super::defineCommand); | ||
} | ||
|
||
public void defineCommand(String commandName, CommandInfo info) { | ||
mykola-mokhnach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
super.defineCommand(commandName, info); | ||
} | ||
|
||
@SuppressWarnings("unchecked") | ||
|
Uh oh!
There was an error while loading. Please reload this page.