- Appium 12+ ( https://bitbucket.org/appium/appium.app/downloads/ )
- Chromedriver 2.2 ( http://chromedriver.storage.googleapis.com/index.html )
- Emulator or device with root permissions
- Chrome stable version on device (https://www.dropbox.com/s/fwaz3ott4jzvrrr/Google_Chrome_v27_0_1453_90_stable.apk )
After extracting chromedriver add the path in system variables. If you configure all correct , execute command :
For Windows : “where chromedriver”
For Mac and Linux: “whereis chromedriver”
And you should see path to chromedriver;
For root device you should grant access to folder /data/local
Type in terminal:
- adb shell
- su
- chmod 777 /data/local
WebDriver Capabilities:
capabilities.setCapability("device", "Android");
capabilities.setCapability("app", "chrome");
capabilities.setCapability("device", "iPhone Simulator");
capabilities.setCapability("app", "safari");