Appium 2.0 Explained: What’s New & How to Use It

appium 2 0

Appium 2.0 re-envisioned Appium as a platform with independently installed drivers, community plugins, and W3C-only protocol support. Learn what changed, the CLI commands to manage drivers and plugins, and how to install it.

Key takeaways
The 30-second version of this article
Appium 2.0 turned Appium into a platform where drivers and plugins are installed and updated separately from the server.
Drivers such as XCUITest and UiAutomator2 are managed with appium driver install and appium driver update commands.
Anyone can build and publish plugins to extend Appium, managed with appium plugin commands.
Appium 2.0 dropped the legacy JSON Wire Protocols and supports only the W3C WebDriver Protocol.
Install Appium 2 with npm i -g appium@2, or omit the version to get the latest major release.
Guide to getting started with Appium 2.0

Appium 2.0 was released after several years of updates to Appium 1.x, making it the biggest Appium release in years. Many significant changes were introduced, including removing deprecated features, adding improvements, and most importantly, re-envisioning Appium as a platform.

In this article, we’ll explore in depth how you as a tester can use this transformation in your projects.

What Is Appium 2.0?

Appium 2.0 is a major version of Appium, the popular open-source mobile automation testing framework that lets you write and execute automated tests for mobile apps on different platforms, such as Android, iOS, and Windows.

Appium 2.0 Features

The biggest difference was that Appium 2.0 positions itself as a platform that enables easy creation and sharing of "drivers" (code projects for automating a specific platform) and "plugins" (code projects for modifying, extending, or adding functionalities to Appium). 
 

Several other major features include:

Independent Drivers

Starting from Appium 2.0, drivers can be independently installed/uninstalled or updated. For example, instead of waiting for a new release of the Appium server, we have the option to solely update the driver for XCUITest using CLI commands.
 

Install a driver

appium driver install xcuitest

Update a driver

appium driver update xcuitest

Update multiple drivers (one command per driver)

appium driver update xcuitest
appium driver update uiautomator2

Plugins

Anyone can now create and release a plugin that can be installed in Appium. Customization will now be a more straightforward process.
 

To list all Appium plugins:

appium plugin list

To install a plugin by name:

appium plugin install <plugin-name>

Protocol Changes

Appium's API is based on the W3C WebDriver Protocol, which has been used for many years. Before the W3C WebDriver Protocol became a web standard, Selenium and Appium used other protocols called "JSONWP" (JSON Wire Protocol) and "MJSONWP" (Mobile JSON Wire Protocol). The W3C Protocol has a few minor differences compared to the (M)JSONWP protocols.
 

Appium 1.x supported both protocols to keep older Selenium and Appium clients compatible with newer servers. Appium 2.0 drops (M)JSONWP and supports only the W3C WebDriver Protocol, so you can no longer start Appium sessions using WebDriver clients that don't support W3C.

How To Install Appium 2.0

You can install Appium 2 globally via npm (part of Node.js) using this command:

npm i -g appium@2

Appium 3 has since been released. Pinning @2 keeps you on the 2.x line; drop it to install the latest major version.

Level Up Your Appium 2.0 Testing With Katalon

Katalon is a unified quality management platform built on industry-standard frameworks like Selenium, Appium, and Cucumber. It delivers the flexibility and scalability you expect, without the maintenance, complexity, or limitations of legacy open-source tools.

After you download Katalon Studio, you can select which version of Appium to use in Project Settings > Execution > Mobile. Check the Katalon documentation for the Appium versions your Katalon Studio release supports.

You can create your mobile tests quickly using Katalon's Built-in Keywords, which are essentially pre-made code snippets. These snippets can be easily used to create a complete test script for a wide variety of mobile features. Another interesting feature is the Record-and-Playback, which essentially records all of the actions happening on your screen and stores them as automated test scripts that you can re-execute across browsers and devices.

Frequently asked questions

Henrik (Minh Huy) Dao

Minh Huy Dao (Henrik) is a Senior Quality Engineer at Katalon, where he has worked since 2023. He has nearly 10 years of experience in QA and test automation, including roles at TMA Solutions, Axon Active and Doctor Anywhere. His work spans automation with Java, JavaScript and WebdriverIO, as well as CI/CD with Jenkins and leading Scrum teams.

Connect on LinkedIn →
Get started

Test everything. Ship with confidence.

From generating test cases to spotting failures, Katalon's AI works across your entire pipeline, automatically.

Live webinar

The Next Evolution of Manual Testing: Introducing Katalon AI Test Runner

Learn how to grow your QA team's capacity in the age of AI, then watch Katalon AI Test Runner turn manual test cases into automated runs, live.

2:00 to 3:00 PM IST
Almas AhmedSenior Account Manager
Sumit WankhedeSolutions Engineer Manager
Register now