Auto-start and manage an Appium server for WebdriverIO mobile tests using @wdio/appium-service

domain: mobile-automation · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install `@wdio/appium-service` as a dev dependency and add `'appium'` to the `services` array in wdio.conf.js
  2. Set `port: 4723` (Appium's default port) in the config so WebdriverIO's driver and the launched Appium server agree on where to connect
  3. Pass Appium CLI arguments via the service's `args` option object using lower-camelCase keys, e.g. `['appium', { args: { platformName: 'iOS', debugLogSpacing: true } }]`
  4. Point `command` at a specific Appium binary (e.g. `'appium'` for a global npm install) if you don't want the bundled version, and set `logPath` to capture server logs
  5. Use `npx start-appium-inspector` to launch a local Appium server plus the Inspector UI at `http://localhost:{port}/inspector` for interactive element exploration
  6. Rely on the service's automatic cloud detection — when your capabilities target a cloud provider it skips starting a local Appium process entirely

Known gotchas

Related routes

Install and use the Appium UiAutomator2 driver to automate an Android app
appium.io · 6 steps · unrated
Manage Appium 2.x drivers and plugins from the command line
appium.io · 5 steps · unrated
Register a custom WebdriverIO service with separate launcher and worker lifecycle hooks in wdio.conf.js
browser-automation · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans