Appium For Beginner

Appium For Beginner


■ Environment settings

■ How to execute test


  • Contained packages

Android studio :

  • Create the simulator
    1. Click Configure -> Click Access ADV Manager
    2.  Click Create Virtual Device
    3. Select Phone tab -> Pixel 2 -> Next

Start the simulator

  • Click icon Start
  • Active the simulator

Check the simulator is in debug mode

  • In command line : adb devices
  • In emulated device
  • Check Chrome browser version
    1. Open google app on simulator
    2. Click setting
    3. Click About Chrome

Appium Desktop

  • Please provide the default port
Server Address :
Server Port : 4723
  • Options selected for server’s configuration

■ How to capture elements on mobile Chrome Browser?

  1. Android Studio
    . Start simulator
    . Open Chrome
  2. Chrome Browser on Desktop
    . Open Chrome browser
    . Access ""
    . Start debug device's browser
    Or go to “chrome://inspect/devices
    . Capture elements

■ Implement test script as scenario

  • Test Scenario:
1.  Open Goolge Chorme Application
2.  Navigate to google site
3.  Input text "shift asia" then click on search button
4.  Click on the result with ""
  • Main page
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;


public class androidTest {

    static WebDriver driver;

    public static void setUpClass() throws MalformedURLException {
        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability("platformName", "Android");
        capabilities.setCapability("platformVersion", "9.0.0");
        capabilities.setCapability("deviceName", "emulator-5554");
        capabilities.setCapability("browserName", "Chrome");
        capabilities.setCapability("automationName", "UiAutomator1");
        capabilities.setCapability("chromedriverExecutable", "D:\\androidTest\\drivers\\chromedriver.exe");
        driver = new RemoteWebDriver(new URL(""), capabilities);

    public void googleTest() {
        // navigate to google site

        //Input and Search text 'ShiftAsia'

        //Click link Shift Asia