Created
June 15, 2013 11:22
-
-
Save DominikDary/5787807 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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