Appium
Appium is an open-source project and ecosystem of related software, designed to facilitate UI automation of many app platforms, including mobile (iOS, Android, Tizen), browser (Chrome, Firefox, Safari), desktop (macOS, Windows), TV (Roku, tvOS, Android TV, Samsung), and more!.
https://appium.io
https://github.com/appium/appium
Table of contents
π² β Optional
β β Required
π β Pick One
βΉοΈ β Information
Server
β Installation
npm install --global appium
π² Validation
appium --version
βΉοΈ Location
π macOS
/Users/{USER}/.appium
π Windows
C:\Users\{USER}\AppData\Roaming\npm\node_modules\appium
Driver
Appium supports app automation across a variety of platforms, like iOS, Android, macOS, Windows, and more. Each platform is supported by one or more drivers. All installed drivers are enabled by default.
Appium Ecosystemβs Drivers
macOS
β Installation
Suppose I want to setup environment on
macOS
machine for testingiOS app
,macOS app
andAndroid app
.
- iOS app
appium driver install xcuitest
- macOS app
appium driver install mac2
- Android app
appium driver install uiautomator2
Or refer to the Appium Ecosystemβs Drivers for installing appropriate drivers to your testing environment.
π² Validation
appium driver list --installed
π² Doctor
appium driver doctor xcuitest appium driver doctor mac2 appium driver doctor uiautomator2
βΉοΈ Location
/Users/{USER}/.appium/node_modules/appium-xcuitest-driver
/Users/{USER}/.appium/node_modules/appium-mac2-driver
/Users/{USER}/.appium/node_modules/appium-uiautomator2-driver
Windows
β Installation
Suppose I want to setup environment on
Windows
machine for testingAndroid app
andWindows app
.
- Android app
appium driver install uiautomator2
- Windows app
appium driver install --source=npm appium-windows-driver
Or refer to the Appium Ecosystemβs Drivers for installing appropriate drivers to your testing environment.
π² Validation
appium driver list --installed
π² Doctor
appium driver doctor uiautomator2 appium driver doctor windows
βΉοΈ Location
C:\Users\{USER}\.appium\node_modules\appium-uiautomator2-driver
C:\Users\{USER}\.appium\node_modules\appium-windows-driver
Plugin
Plugins allow you to extend server functionality without changing the server code. The main difference between drivers and plugins is that the latter must be explicitly enabled on Appium server startup.
Appium Ecosystemβs Plugins
β Installation
π² Images
Plugin for image comparison and finding elements by image.
appium plugin install images
Usage
The plugin must be explicitly activated when launching the Appium server.
appium --use-plugins=images
π² Validation
appium plugin list --installed
βΉοΈ Location
π macOS
/Users/{USER}/.appium/node_modules/@appium/images-plugin
π Windows
C:\Users\{USER}\.appium\node_modules\@appium\images-plugin
Inspector
A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server. When youβre using it to inspect a mobile app.
https://github.com/appium/appium-inspector
β Installation
Appium Inspector is released in two formats:
π Desktop application
π macOS
- Visit https://github.com/appium/appium-inspector/releases
- Click
Appium-Inspector-mac-xxxx.x.x.dmg
- Open
Appium-Inspector-mac-xxxx.x.x.dmg
inDownloads
- Drag
Appium Inspector
to theApplications
π Windows
- Visit https://github.com/appium/appium-inspector/releases
- Click
Appium-Inspector-windows-xxxx.x.x-xxx.exe
- Open
Appium-Inspector-windows-xxxx.x.x-xxx.exe
inDownloads
- Do installation procedures of Setup Wizard
π Web application
Appium Inspector is hosted by Appium Pro. You can inspect your app on this site directly at https://inspector.appiumpro.com.