private void verifyUser(UserDO user) throws Exception {
    WebDriverWait wait = new WebDriverWait(driver(), 5);
    WebElement inputUsername =
        wait.until(ExpectedConditions.presenceOfElementLocated(By.id("label_username_data")));

    Assert.assertEquals(inputUsername.getText(), user.getUsername());
    Assert.assertEquals(driver().findElement(By.id("label_email_data")).getText(), user.getEmail());
    Assert.assertEquals(driver().findElement(By.id("label_password_data")).getText(),
        user.getPassword());
    Assert.assertEquals(driver().findElement(By.id("label_name_data")).getText(), user.getName());
    Assert.assertEquals(driver().findElement(By.id("label_preferedProgrammingLanguage_data"))
        .getText(), user.getProgrammingLanguage().getValue());
    Assert.assertEquals(driver().findElement(By.id("label_acceptAdds_data")).getText(), "true");

    
    driver().findElement(By.id("buttonRegisterUser")).click();
  }
Base Test to demonstrate how to test native android apps with Selendroid.

@author ddary
selendroid-test-app/src/test/java/io/selendroid/tests/UserRegistrationTest.java