@Test()
  public void shouldFindInvisibleElemenById() throws Exception {
    openStartActivity();
    WebElement textview = driver().findElement(By.id("visibleTextView"));
    boolean isTextViewDisplayed = textview.isDisplayed();
    driver().findElement(By.id("visibleButtonTest")).click();
    Assert.assertEquals(textview.isDisplayed(), !isTextViewDisplayed);
    Assert.assertEquals(textview.getAttribute("shown"), String.valueOf(!isTextViewDisplayed));
  }
Element finding test for the native view part of selendroid.

@author ddary
selendroid-test-app/src/test/java/io/selendroid/nativetests/NativeElementFindingTest.java