Skip to main content

Migrating from Appium 2 to Appium 3 on Sauce Labs

Appium 3 is a smaller upgrade than Appium 2 was. It removes deprecated server endpoints and raises the requirements of the Appium server itself. Sauce Labs runs the Appium server for you, so the server-side changes (Node.js version, installation, server flags) need no action on your side. Your tests can be affected by the removed endpoints and by the driver updates that ship with Appium 3.

This guide lists the changes that have an impact on running your tests on Sauce Labs. For the complete list, read the official Appium 3 migration guide and the Appium release notes.


What's Changed? Version Overview​

Componentappium2-20250901appium3-2026-11Changelog
Appium Server2.19.03.9.1View Releases
UiAutomator2 Driver (Android)4.2.98.7.3View Releases
XCUITest Driver (iOS)9.10.512.22.8View Releases
Flutter Driver2.19.04.1.0View Releases
Flutter Integration Driver1.3.02.0.3View Releases
iOS WebDriverAgentSauceWebDriverAgent (Sauce Labs fork)Official Appium WebDriverAgent 16.17.7View Releases

On Android Emulators and iOS Simulators, Appium 3 is available as version 3.8.0. See Appium Versions for the drivers it contains.


1. Select an Appium 3 Version​

Set the appiumVersion capability in your sauce:options object to an Appium 3 version: appium3-2026-11 for Real Devices, or 3.8.0 for Emulators and Simulators. Everything else in your capabilities stays as it was for Appium 2.

MutableCapabilities capabilities = new MutableCapabilities();

capabilities.setCapability("platformName", "android");
capabilities.setCapability("appium:deviceName", "Google Pixel 6");
capabilities.setCapability("appium:automationName", "uiautomator2");
capabilities.setCapability("appium:app", "storage:filename=my-app.apk");

HashMap<String, Object> sauceOptions = new HashMap<String, Object>();
// Select Appium 3 on Real Devices
sauceOptions.put("appiumVersion", "appium3-2026-11");
capabilities.setCapability("sauce:options", sauceOptions);

For iOS, use platformName: ios and appium:automationName: xcuitest. For accessibility testing with Deque axe DevTools, use appium3-deque-accessibility.


2. Removed Endpoints: Update Your Client Library​

Appium 3 removes 98 deprecated server endpoints, mostly from the old JSONWP and MJSONWP protocols. Most of them have a replacement: a W3C endpoint, or a mobile: command of the driver. The full list with replacements is in the Removed Endpoints section of the official guide.

Action Required: Use a current release of your Appium client library. Older client versions still call the removed endpoints and will get 404 Not Found errors. Then search your tests for the removed commands. The ones most often used in mobile tests:

RemovedReplacement
TouchAction / MultiTouchAction (POST /touch/perform, /touch/multi/perform)W3C Actions API, or mobile: gestures such as mobile: swipeGesture (Android) and mobile: swipe (iOS)
launchApp, closeApp, resetApp, backgroundAppmobile: launchApp (iOS) / mobile: activateApp (Android), mobile: terminateApp, mobile: clearApp (Android), mobile: backgroundApp
pressKeyCode, longPressKeyCodemobile: pressKey (Android), mobile: keys (iPadOS)
currentActivity, currentPackagemobile: getCurrentActivity, mobile: getCurrentPackage
lock, unlock, isLockedmobile: lock, mobile: unlock, mobile: isLocked
setClipboard, getClipboardmobile: setClipboard, mobile: getClipboard
toggleWifi, toggleData, toggleAirplaneModemobile: setConnectivity
startRecordingScreen, stopRecordingScreenStill supported by the UiAutomator2 and XCUITest drivers. Sauce Labs also records a video of every session.

A few endpoints only changed their parameters: POST /session accepts capabilities only (no desiredCapabilities), alert text and element value take text instead of value, and switching windows takes handle instead of name. See Modified Endpoints.


3. Android: UiAutomator2 Driver (v4.2.9 → v8.7.3)​

  • Android 8.0 (API level 26) or newer is required since driver 6.0.0. Sessions on older Android versions cannot use Appium 3.

  • mobile: listApps output changed since driver 7.0.0: the result now follows the XCUITest driver format.

    • Action Required: Adjust any code that parses the result of mobile: listApps.

4. iOS: XCUITest Driver (v9.10.5 → v12.22.8)​

  • Official WebDriverAgent: Appium 3 sessions on Sauce Labs Real Devices use the official Appium WebDriverAgent instead of SauceWebDriverAgent. Some endpoints may behave differently, for example getWindowRect. See WebDriverAgent for iOS Real Devices.

  • Capabilities removed since driver 11.0.0: appium:appInstallStrategy, appium:calendarAccessAuthorized, appium:useSimpleBuildTest, appium:waitForQuiescence, appium:launchWithIDB, appium:simpleIsVisibleCheck.

    • Action Required: Remove these capabilities. To tune idle waiting, use appium:waitForIdleTimeout.
  • Commands removed since driver 11.0.0: mobile: startPcap, mobile: stopPcap, mobile: listXCTestsInTestBundle. For network traffic, use Sauce Labs network capture.

  • BiDi event renamed: context changes are only emitted as appium:xcuitest.contextUpdated, no longer as appium.contextUpdated.


5. Flutter​

appium3-2026-11 contains the Flutter driver 4.1.0 and the Flutter Integration driver 2.0.3. Their changelogs list no command or capability changes for Appium 3 beyond the Appium 3 requirement itself. Keep appium:automationName set to Flutter or FlutterIntegration as before.