---
title: Appium Tutorial with WebdriverIO in JavaScript (Free Course + Certification)
description: 'A hands-on Appium tutorial with WebdriverIO, in JavaScript: from installing
  Appium 3 to a calculator test suite that runs on real Android and iOS devices in
  the cloud. Every demo in this video is a real run of the course code, on an Android
  emulator and on real devices on TestingBot.'
source_url:
  html: https://testingbot.com/resources/videos/appium-webdriverio-tutorial-course
  md: https://testingbot.com/resources/videos/appium-webdriverio-tutorial-course.md
---

# Appium Tutorial with WebdriverIO in JavaScript (Free Course + Certification)

 Share on Facebook 

 Share on Twitter 

 Post on Reddit 

 Share link 

https://www.youtube.com/embed/K7lHnrLqjx0

A hands-on Appium tutorial with WebdriverIO, in JavaScript: from installing Appium 3 to a calculator test suite that runs on real Android and iOS devices in the cloud. Every demo in this video is a real run of the course code, on an Android emulator and on real devices on TestingBot.

## What you'll learn

- How Appium works: the WebdriverIO runner, the WebDriver protocol, the Appium server and its drivers
- Installing Appium 3 with the UiAutomator2 and XCUITest drivers, and checking them with appium driver doctor
- Locating elements in a native app: accessibility IDs, UiSelector, iOS predicates and class chains
- Waiting without sleeps: waitforTimeout, waitForDisplayed and waitUntil
- Page objects that pick the right locator for Android or iOS
- Reporters for people and for CI: spec, JUnit XML and Allure
- Running the same suite on a real Pixel 8 and iPhone in parallel on TestingBot, and reading the results in the dashboard

The full course, with code, quick checks and a knowledge check, is free and needs no account: [Appium Tutorial with WebdriverIO in JavaScript](https://testingbot.com/resources/courses/appium-webdriverio). Free TestingBot Appium certification (pass the exam and run the course suite on two device configurations on TestingBot; issued by TestingBot, not by the Appium or WebdriverIO projects): [certification details](https://testingbot.com/resources/courses/appium-webdriverio/certification).

## Chapters

- 0:00 Course introduction
- 0:50 WebdriverIO and Appium Architecture
- 1:13 Chapter 1: Learn about Appium
- 1:55 Chapter 2: Locate Elements
- 2:33 Chapter 3: Implicit and Explicit Waits
- 2:56 Chapter 4: The Page Object Model
- 3:30 Chapter 5: WebdriverIO Reporters
- 4:06 Chapter 6: Running tests on TestingBot
- 6:50 Chapter 7: Knowledge check

_The presenter is an AI avatar of Jochen Delabie (TestingBot), voiced by a stock AI voice._

## Video transcript

### Course introduction

Hi, I'm Jochen from TestingBot. This free course teaches mobile test automation with Appium and WebdriverIO, in JavaScript. You'll need Node.js and some JavaScript. An Android emulator or iOS simulator helps, but you can also go straight to the cloud. You build one project: a WebdriverIO suite that tests a calculator app. You learn how Appium and its drivers fit together, how to find elements in a native app, and how to wait without sleeps. Then you refactor into page objects and add reporters a CI server understands. In chapter six, the same suite runs on real Android and iOS devices on TestingBot, in parallel. At the end, you can earn the free TestingBot certification. Let's get started.

### WebdriverIO and Appium Architecture

Before any code, it helps to know the four layers of a test. Your spec runs in the WebdriverIO runner. Each command becomes a WebDriver request. The Appium server routes it to a driver, picked by appium:automationName. And the driver taps and types on the device. Most errors belong to one layer.

### Chapter 1: Learn about Appium

Chapter one installs Appium 3 and its drivers. Since Appium 2, the server ships without platform support: you install UiAutomator2 for Android and XCUITest for iOS. Then appium driver doctor checks what the driver needs, like the Android SDK and a JDK. Here it is on this machine. appium driver doctor checks what UiAutomator2 needs. The Android SDK, adb and the emulator, and a JDK: all found. The two warnings are optional, for app bundles and screen streaming. No required fixes.

### Chapter 2: Locate Elements

Chapter two is about locators. A native screen has no DOM, so CSS selectors don't work. Prefer the accessibility ID, with the tilde prefix: it works on Android and iOS and survives layout changes. Here the spec finds both inputs and the sum by accessibility ID, on an Android emulator. The Appium service starts the server, and the app opens on the emulator. The spec types ten and five, found by accessibility ID, and checks the sum: fifteen. One passing.

### Chapter 3: Implicit and Explicit Waits

Chapter three is about waiting. Leave the implicit wait at zero. WebdriverIO already waits for elements before it acts, up to waitforTimeout, and expect matchers retry until they pass. For anything else, wait for a condition with waitForDisplayed or waitUntil, and always give a timeout message.

### Chapter 4: The Page Object Model

Chapter four moves the locators into page objects. A base Screen picks the locator for the current platform, and each screen names one element that proves it has loaded. The spec only says what it does: add ten and five, expect fifteen. Two tests, passing on the emulator. The same command, now with page objects. Each test waits for the calculator screen, adds two numbers, and checks the sum. Two passing.

### Chapter 5: WebdriverIO Reporters

Chapter five adds reporters. The spec reporter is for people at a terminal. JUnit XML is for your CI server, one file per worker. And Allure collects steps and screenshots for whoever investigates a failure. One run writes all three, here on the emulator. One run, three reporters. The spec reporter in the terminal, then a JUnit XML file and the Allure results, on disk for CI.

### Chapter 6: Running tests on TestingBot

Chapter six moves the suite to real devices on TestingBot. You install the TestingBot service, upload your app, and point WebdriverIO at the TestingBot hub. Your specs and page objects don't change. Then you add an iPhone next to the Android phone, and both run at the same time. First, your credentials. In the TestingBot member area, open Settings, then Security. The API Credentials card has your key and secret, each with a copy button. Export them as TB\_KEY and TB\_SECRET, and never commit them. Then upload the app to TestingBot Storage with one curl call. It answers with an app URL; put it in TB\_ANDROID\_APP, and the iPhone build in TB\_IOS\_APP. The same specs, now with the TestingBot config. WebdriverIO starts two workers, one per capability, and asks TestingBot for a Pixel 8 and an iPhone on iOS 26. The Pixel 8 on Android 14 is first: a real phone, running the calculator app. The iPhone 16 Pro joins while the Pixel is still running. Each device reports back: two passing on Android, and two on iOS. In the TestingBot dashboard, the build groups both sessions: the same calculator spec on a Pixel 8 with Android 14, and an iPhone 16 Pro with iOS 26. Both passed, on real devices. How the build ran shows each session as a bar, one row per parallel slot. The iPhone took a few seconds longer to start, but it never waited for the Android phone to finish. The summary shows the wall time, sixteen seconds, and how busy your parallel slots were. Each extra slot is one more device running at the same time, so a growing suite does not have to mean a longer wait. Open a session to see the device and its OS version, and the video of the run: ten plus five, fifteen. The Logs tab has the Appium and device logs, for when a test fails. Everything TestingBot-specific goes in tb:options. The reference lists it all: the Appium version, the device time zone, language and location, files on the device, network throttling, and test names and builds.

### Chapter 7: Knowledge check

That's the course. The last chapter is a knowledge check: nine questions, each with a short explanation. If you'd like something to show an employer, take the free TestingBot certification: pass the exam, and run the calculator suite on two devices on TestingBot. Both are linked from the course page.

## Sidebar

### TestingBot Cloud Testing

Run automated, manual and visual tests on remote browsers and devices. Sign up for a free trial.

[Free Trial](https://testingbot.com/users/sign_up)

### Other videos

[![Appium Tutorial with WebdriverIO in JavaScript (Free Course + Certification)](https://testingbot.com/assets/videos/appium-webdriverio-course-e7519b511b317da2db984af8a9517de74535de8a33a055a89e9cd34980663951.jpg)](https://testingbot.com/resources/videos/appium-webdriverio-tutorial-course)

#### Appium Tutorial with WebdriverIO in JavaScript (Free Course + Certification)

A hands-on Appium tutorial with WebdriverIO, in JavaScrip...

[Watch video →](https://testingbot.com/resources/videos/appium-webdriverio-tutorial-course)

[![Cypress Tutorial in JavaScript (Free Course + Certification)](https://testingbot.com/assets/videos/cypress-course-a12eb8c833003156f19867fc7cc4c56c12120cdcfad9ca8c658ca392a6614a14.jpg)](https://testingbot.com/resources/videos/cypress-tutorial-course)

#### Cypress Tutorial in JavaScript (Free Course + Certification)

A hands-on Cypress tutorial in JavaScript: from npm insta...

[Watch video →](https://testingbot.com/resources/videos/cypress-tutorial-course)

[![WebdriverIO Tutorial in TypeScript (Free Course + Certification)](https://testingbot.com/assets/videos/webdriverio-course-b963320836ab60610065c7f987c171329c5bcf168b5525cee18c93c9236ce5ec.jpg)](https://testingbot.com/resources/videos/webdriverio-tutorial-course)

#### WebdriverIO Tutorial in TypeScript (Free Course + Certification)

A hands-on WebdriverIO tutorial for web apps, in TypeScri...

[Watch video →](https://testingbot.com/resources/videos/webdriverio-tutorial-course)

## Ready to start testing?
[Start a free trial](https://testingbot.com/users/sign_up)
