Skip to content

Conversation

valfirst
Copy link
Collaborator

@valfirst valfirst commented Jun 2, 2025

Change list

  • ContextAware interface was removed from Selenium: SeleniumHQ/selenium@3c25c92. io.appium.java_client.remote.SupportsContextSwitching will be a replacement for the removed interface.

Closes #2296.

Types of changes

What types of changes are you proposing/introducing to Java client?

  • No changes in production code.
  • Bugfix (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 not work as expected)

Details

Note: new release will be required once new Selenium release is published.


public class EmptyWebDriver implements WebDriver, ContextAware,
JavascriptExecutor, HasCapabilities, TakesScreenshot {
public class EmptyWebDriver implements WebDriver, JavascriptExecutor, HasCapabilities, TakesScreenshot {
Copy link
Contributor

Choose a reason for hiding this comment

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

should it instead implement SupportsContextSwitching ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed the corresponding methods, they were not used

@valfirst valfirst merged commit e98bf2d into appium:master Jun 2, 2025
7 checks passed
@valfirst valfirst deleted the fix-selenium-4-34-0-compatibility branch June 2, 2025 18:50
@asolntsev
Copy link
Contributor

@valfirst Selenium 4.34.0 has been released, are you going to release Appium as well?

@KazuCocoa KazuCocoa added the size:S contribution size: S label Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S contribution size: S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there an replacement for org.openqa.selenium.ContextAware interface in Appium?
4 participants