Endpoint

Overview

A standard Appium server for your phones. Point any Appium or WebDriver client at it and use a phone exactly as you would a local device: find elements, read the UI tree, run scripted flows. There is one address for all of your phones. You choose the phone with the capability phonesinc:phoneId when you create the WebDriver session. Every later command carries that WebDriver session’s ID, which is how it reaches the same phone. Everything after /appium is passed to the phone’s Appium server unchanged, and its response is returned unchanged. These responses are standard WebDriver responses, not the JSON format the rest of this API uses. Requires an active session on the phone. An Appium (WebDriver) session and a Phones Inc session are separate things: start the Phones Inc session first, then create your WebDriver session here. Platforms: Android, and iPhones whose appium field is true. On a phone where it is false, creating a WebDriver session returns 400 with the code unsupported.

Connecting

One WebDriver session drives one phone. To drive several phones, create one WebDriver session per phone.

Behavior

  • Each WebDriver command renews the Phones Inc session’s expiry, like any other control request.
  • Each command has the same 120 second limit as the rest of the API.
  • When the Phones Inc session ends, the WebDriver session on the phone is closed.
  • The other endpoints of this API keep working while a WebDriver session is open. You can mix them, for example read the screen or import media in the middle of an Appium script.

Errors

Requests rejected before they reach the phone’s Appium server return the normal JSON error format: Anything else is a WebDriver response from Appium itself.