Skip to content

Let's Get Rolling

Prerequisites


Node

  • Node.js should be installed and properly set up.
  • If not, download & install Node.js from here

Info

We will use node for download and usage of Appium

Installation of Appium and Appium Doctor


  • Step 1 : Install Appium via npm

    npm install -g appium@latest
    

Note

Installing Appium 2.0 only installs the Appium server, not the drivers. All drivers have been isolated from the Appium server app

  • Step 2 : Install drivers
appium driver install uiautomator2 
appium driver install xcuitest
  • Step 3 : Check the list of drivers installed

    appium driver list
    
  • Step 4 : Install appium-doctor (optional)

    npm install -g appium-doctor
    

Note

Appium Doctor is a handy tool from Appium team that serves as a pre-flight check for Appium test environment Attempts to diagnose and fix common Node, iOS and Android configuration issues

  • Step 5 : Run appium-doctor to check the status of dependencies (optional)

    appium-doctor
    

    A proper set up would look like this :

    appiumdoctor

Setting of Java Home

Windows
  • Create a system variable JAVA_HOME with the value as the path where your Java is installed. This should be the root location of your Java installation

    javahome


  • Add the Java bin path to the PATH variable

    javahome

Mac OS

Add the JAVA_HOME in .bash_profile (for old MACs) or in .zshrc or .zprofile (for new MACs)

export JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home"
export PATH=$PATH:$JAVA_HOME/bin

Android Setup iOS Setup