Skip to content

Instantly share code, notes, and snippets.

@DominikDary
Created June 15, 2013 11:22
Show Gist options
  • Save DominikDary/5787807 to your computer and use it in GitHub Desktop.
Save DominikDary/5787807 to your computer and use it in GitHub Desktop.
SelendroidCapabilities capa =
SelendroidCapabilities.emulator(
DeviceTargetPlatform.ANDROID16,
"io.selendroid.testapp:0.4.0");
WebDriver driver = new SelendroidDriver("http://localhost:5555/wd/hub", capa);
WebElement inputField = driver.findElement(By.id("my_text_field"));
Assert.assertEquals("true", inputField.getAttribute("enabled"));
inputField.sendKeys("Selendroid");
Assert.assertEquals("Selendroid", inputField.getText());
driver.quit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment