|
| 1 | +This is the list of main changes between major versions 8 and 9 of Appium |
| 2 | +java client. This list should help you to successfully migrate your |
| 3 | +existing automated tests codebase. |
| 4 | + |
| 5 | + |
| 6 | +## The support for Java compilers below version 11 has been dropped |
| 7 | + |
| 8 | +- The minimum supported Java version is now 11. The library won't work |
| 9 | +with Java compilers below this version. |
| 10 | + |
| 11 | +## The minimum supported Selenium version is set to 4.14.1 |
| 12 | + |
| 13 | +- Selenium versions below 4.14.1 won't work with Appium java client 9+. |
| 14 | +Check the [Compatibility Matrix](../README.md#compatibility-matrix) for more |
| 15 | +details about versions compatibility. |
| 16 | + |
| 17 | +## Removed previously deprecated items |
| 18 | + |
| 19 | +- `MobileBy` class has been removed. Use |
| 20 | +[AppiumBy](../src/main/java/io/appium/java_client/AppiumBy.java) instead |
| 21 | +- `launchApp`, `resetApp` and `closeApp` methods along with their |
| 22 | +`SupportsLegacyAppManagement` container. |
| 23 | +Use [the corresponding extension methods](https://github.com/appium/appium/issues/15807) instead. |
| 24 | +- `WindowsBy` class and related location strategies. |
| 25 | +- `ByAll` class has been removed in favour of the same class from Selenium lib. |
| 26 | +- `AndroidMobileCapabilityType` interface. Use |
| 27 | +[UIAutomator2 driver options](../src/main/java/io/appium/java_client/android/options/UiAutomator2Options.java) |
| 28 | +or [Espresso driver options](../src/main/java/io/appium/java_client/android/options/EspressoOptions.java) instead. |
| 29 | +- `IOSMobileCapabilityType` interface. Use |
| 30 | +[XCUITest driver options](../src/main/java/io/appium/java_client/ios/options/XCUITestOptions.java) instead. |
| 31 | +- `MobileCapabilityType` interface. Use |
| 32 | +[driver options](../src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. |
| 33 | +- `MobileOptions` class. Use |
| 34 | +[driver options](../src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. |
| 35 | +- `YouiEngineCapabilityType` interface. Use |
| 36 | +[driver options](../src/main/java/io/appium/java_client/remote/options/BaseOptions.java) instead. |
| 37 | +- Several misspelled methods. Use properly spelled alternatives instead. |
| 38 | +- `startActivity` method from AndroidDriver. Use |
| 39 | +[mobile: startActivity](https://github.com/appium/appium-uiautomator2-driver#mobile-startactivity) |
| 40 | +extension method instead. |
| 41 | +- `APPIUM` constant from the AutomationName interface. It is not needed anymore. |
| 42 | +- `PRE_LAUNCH` value from the GeneralServerFlag enum. It is not needed anymore. |
| 43 | + |
| 44 | +## Moved items |
| 45 | + |
| 46 | +- `AppiumUserAgentFilter` class to `io.appium.java_client.internal.filters` package. |
0 commit comments