Creating emulators and simulators

We'll now look at how we can create emulators and simulators, starting with an iOS simulator and then move on to an Android simulator.

An iOS simulator

We don't need to create a simulator for Mac; it already comes with Xcode under developer tools. When you start the Appium server for the first time, it will prompt you to authorize the use of Instruments, or if you are running it from npm, run sudo authorize_ios to work with the simulator.

An Android emulator

There are two ways to create an AVD for testing android apps:

  • Create the AVD from the command line
  • Create the AVD using the AVD Manager

Let's create AVD using the command line, as follows:

  1. Open the Command Prompt and type android list targets; this will generate a ...

Get Appium Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.