Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import junit.framework.Assert;
import io.selendroid.SelendroidCapabilities;
import io.selendroid.SelendroidDriver;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
public class SelendroidTest {
private WebDriver driver = null;
public void inputField() {
WebElement inputField = driver.findElement("my_text_field"));
Assert.assertEquals("true", inputField.getAttribute("enabled"));
Assert.assertEquals("Selendroid", inputField.getText());
public void setup() throws Exception {
DesiredCapabilities caps = new SelendroidCapabilities("io.selendroid.testapp:0.10.0");
driver = new SelendroidDriver(caps);
public void teardown() {
if (driver != null) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.