Sunday, 14 February 2021

Automation Testing: Appium Setup on Windows

Automation Testing: Appium Setup on Windows: Steps:          Create AVD using Android SDK,:  Open Appium, Do the setup as shown in below snapshot. Do the Setting for Appiu...

Wednesday, 13 January 2016

Android/Mobile Chrome Automation

Code Template :

    ChromeOptions options=new ChromeOptions();
    options.setExperimentalOptions("androidPackage", "com.android.chrome");
    System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+"/lib/chromedriver.exe");
    WebDriver driver=new ChromeDriver(options);
    driver.get("http://www.example
.com");
    driver.quit();

Friday, 12 June 2015

Appium Setup on Windows

Steps:
  1.        Create AVD using Android SDK,:

  2.  Open Appium, Do the setup as shown in below snapshot.
  3. Do the Setting for Appium general setting as below
  4. Launch Appium Server It will open AVD.
  5. Create new Java Project --> New Class  with following details
    (It will open your application click on specific button (that you need to provide).)           ===================================================================Main(){
    File classpathRoot = new File(System.getProperty("user.dir"));
    File appDir = new File(classpathRoot, "C:\\eclipse_juno_workspace");
    File app = new File(appDir, "ContactManager.apk");
    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
    capabilities.setCapability(CapabilityType.VERSION, "4.4.2");
    capabilities.setCapability("deviceName", "emulator-5554");
    capabilities.setCapability("app", "C:\\eclipse_juno_workspace\\ContactManager.apk");
    capabilities.setCapability("appPackage", "com.example.android.contactmanager");
    capabilities.setCapability("appActivity", ".ContactManager");
    driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
    WebElement ele=driver.findElement(By.name("Add Contact"));
    ele.click();
    }
HAPPY APPIUM....!!!!!!