npm / appium-uiautomator2-driver
appium-uiautomator2-driver
What changed in appium-uiautomator2-driver 6 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
5 breaking1 deprecations4 new APIs and options1 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initappium-uiautomator2-driver 87 changes
Breaking changes 2
The minimum required appium-uiautomator2-server version was raised, affecting which server versions developers can use with this driver.
The package now publishes as ESM only; CommonJS consumers must migrate from require to ESM import.
Deprecations 1
BaseDriver.getSession is marked deprecated.
New APIs and options 3
Adds a command to translate web element rects to native coordinates.
Adds API plumbing for declaredOrientation, allowing it to be used with the driver.
The driver now supports chromedriverGrantPermissions through its Android driver update.
Behavior and default changes 1
Exposes the webview on-screen rect via mobile: getContexts.
appium-uiautomator2-driver 73 changes
Breaking changes 2
Obsolete sessions are automatically terminated using the device ID to be claimed by the current session.
The mobile:listApps response format now follows the XCUITest driver format, which may require updating consumers.
New APIs and options 1
Adds the mobile: setStylusHandwriting command, available behind a security flag.
appium-uiautomator2-driver 61 changes
Breaking changes 1
Reverts the change that modified the listApps format to follow the xcuitest format.