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

**URL:** <https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855>\
**Category:** Issues/Bugs\
**Created:** [July 1, 2025, 9:31am UTC](https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855 "2025-07-01T09:31:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanKovt](https://discuss.appium.io/user_avatar/discuss.appium.io/dankovt/32/9993_2.png) [@DanKovt](https://discuss.appium.io/u/DanKovt)\
**Post date:** [July 1, 2025, 9:31am UTC](https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855/1 "2025-07-01T09:31:45Z")

</div>

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

 ![Screenshot 2025-07-01 at 12.29.34](https://discuss.appium.io/uploads/default/original/2X/8/86861a2378ce1f4425db0894cccaa8e9802bb4aa.png)

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

 ![Screenshot 2025-07-01 at 12.29.07](https://discuss.appium.io/uploads/default/original/2X/8/8743bdbd6056f9527f94c9b74de531fafe066d97.png)

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

Any suggestions on this issue?

---

<div class="post-metadata">

**Author:** ![DanKovt](https://discuss.appium.io/user_avatar/discuss.appium.io/dankovt/32/9993_2.png) [@DanKovt](https://discuss.appium.io/u/DanKovt)\
**Post date:** [July 1, 2025, 10:03am UTC](https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855/2 "2025-07-01T10:03:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DanKovt](https://discuss.appium.io/user_avatar/discuss.appium.io/dankovt/32/9993_2.png) [@DanKovt](https://discuss.appium.io/u/DanKovt)\
**Post date:** [August 13, 2025, 5:53am UTC](https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855/3 "2025-08-13T05:53:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Harish1](https://discuss.appium.io/letter_avatar_proxy/v4/letter/h/b77776/32.png) [@Harish1](https://discuss.appium.io/u/Harish1)\
**Post date:** [August 14, 2025, 11:12am UTC](https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855/4 "2025-08-14T11:12:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [August 14, 2025, 3:30pm UTC](https://discuss.appium.io/t/getting-compilation-error-after-selenium-v4-34-0-was-released-and-contextaware-interface-was-removed/45855/5 "2025-08-14T15:30:21Z")

</div>

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

> **[GitHub - appium/java-client: Java language binding for writing Appium Tests,...](https://github.com/appium/java-client?tab=readme-ov-file#compatibility-matrix)**
>
> Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
