Instantly share code, notes, and snippets.

@oradkovsky
oradkovsky / gist:421574ac813593baade5a82bad0bf07e
Created Feb 21, 2019
androiddriver setup and simple use case
View gist:421574ac813593baade5a82bad0bf07e
public class BasicTests {
private static final String PACKAGE_NAME = "com.noname.pharma";
private AndroidDriver<AndroidElement> driver;
@Before
public void setup() throws Exception {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "emulator-5554");
capabilities.setCapability("platformVersion", "7.1.1");