How to Set Up Appium 2.0 📲 | Complete Installation Guide | Part I | LambdaTest

:rocket: Ready to take your mobile testing skills to the next level? Dive into Appium 2.0 like never before with our brand-new playlist! :movie_camera:

:star2: In Part 1, the incredible Siddharth Shukla, walks you through everything you need to set up Appium 2.0:

:white_check_mark: Understanding prerequisites

:white_check_mark: Installing Node.js & npm

:white_check_mark: Setting up Appium Doctor

:white_check_mark: Adding drivers & plugins

:bulb: Pro Tip: Don’t forget to subscribe for the full series—your future testing self will thank you! :test_tube::sparkles:

Install Appium 2.0 with Node.js: Prerequisites: Ensure you have Node.js (v16 or higher) and npm installed on your machine. Steps:

  1. Open your terminal or command prompt and run the following command to install Appium 2.0 globally: npm install -g appium

  2. Once installed, you can verify the installation by checking the Appium version: appium --version

  3. You can also install Appium Doctor to help diagnose any environment setup issues: npm install -g appium-doctor appium-doctor

Why this solution? This approach is simple and ideal if you are familiar with Node.js and npm. It enables you to easily set up Appium and its dependencies.

Using Appium Desktop for GUI Setup:

Prerequisites: Install Appium Desktop (which includes the Appium server and a GUI for configuration and logs).

Steps:

Download Appium Desktop from the official Appium site.

Once installed, open Appium Desktop, which will launch a GUI where you can start the Appium server and configure your desired capabilities.

You can create a session for Android or iOS devices, and connect your Appium server to run tests.

Why this solution?

If you prefer working with a graphical interface and want an easier way to configure your tests, Appium Desktop provides a great alternative to the command line.

Prerequisites:

You must have Docker installed on your system.

Steps:

  1. Pull the official Appium 2.0 Docker image:

docker pull appium/appium

  1. Once the image is pulled, you can start the Appium server inside a container:

docker run -d -p 4723:4723 appium/appium

  1. You can now interact with the Appium server by connecting it to your desired mobile device or emulator/simulator.

Why this solution?

Using Docker provides a clean, isolated environment to run Appium without needing to install dependencies directly on your machine. It’s especially helpful for teams and CI/CD pipelines.