v8-to-v9-migration-guide.md
October 13, 2023 ยท View on GitHub
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 support for Java compilers below version 11 has been dropped
- The minimum supported Java version is now 11. The library won't work with Java compilers below this version.
The minimum supported Selenium version is set to 4.14.1
- Selenium versions below 4.14.1 won't work with Appium java client 9+. Check the Compatibility Matrix for more details about versions compatibility.
Removed previously deprecated items
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.
Moved items
AppiumUserAgentFilterclass toio.appium.java_client.internal.filterspackage.