Getting compilation error after Selenium v4.34.0 was released and ContextAware interface was removed

I’m getting next compilation error in all places where I call for Android or IOS driver e.g. ‘((AndroidDriver) this.mobileDriver).rotate(screenOrientation);’

This started yesterday after Selenium released v4.30.0 where they removed several deprecated classes

I’ve tried to update io.appium java-client to 9.4.0 version, but it didn’t help.

Any suggestions on this issue?

I’ve managed to fix this by updating selenium-java to 4.34.0 and java-client to 9.5.0 that was released several hours ago.

Similar issue is actual again, Selenium removed deprecated LocationContext related classes, and now I’m getting ‘cannot access org.openqa.selenium.html5.LocationContext
[ERROR] class file for org.openqa.selenium.html5.LocationContext not found ‘ error. Waiting for java-client 9.6.0. @mykola-mokhnach would you be able to take a look please?

I am also facing the same issue. It will be really helpful if this gets resolved in an upcoming version, because I am stuck unable to do execution. Is there any other compatible versions(Java-client, selenium-java )which I can use for now

You should always consult the compatibility matrix for Selenium compatibility issues: