This is the list of main changes between major versions 8 and 9 of Appium java client. This list should help you to successfully migrate your existing automated tests codebase.
- The minimum supported Java version is now 11. The library won't work with Java compilers below this version.
- Selenium versions below 4.14.1 won't work with Appium java client 9+. Check the Compatibility Matrix for more details about versions compatibility.
MobileByclass has been removed. Use AppiumBy insteadlaunchApp,resetAppandcloseAppmethods along with theirSupportsLegacyAppManagementcontainer. Use the corresponding extension methods instead.WindowsByclass and related location strategies.ByAllclass has been removed in favour of the same class from Selenium lib.AndroidMobileCapabilityTypeinterface. Use UIAutomator2 driver options or Espresso driver options instead.IOSMobileCapabilityTypeinterface. Use XCUITest driver options instead.MobileCapabilityTypeinterface. Use driver options instead.MobileOptionsclass. Use driver options instead.YouiEngineCapabilityTypeinterface. Use driver options instead.- Several misspelled methods. Use properly spelled alternatives instead.
startActivitymethod from AndroidDriver. Use mobile: startActivity extension method instead.APPIUMconstant from the AutomationName interface. It is not needed anymore.PRE_LAUNCHvalue from the GeneralServerFlag enum. It is not needed anymore.
AppiumUserAgentFilterclass toio.appium.java_client.internal.filterspackage.