@Test
  public void shouldFindButtonsByClass() throws Exception {
    openStartActivity();
    String buttonText = "Display text view";
    List<WebElement> elements = driver().findElements(By.className("android.widget.Button"));
    Assert.assertEquals(9, elements.size());
    Assert.assertEquals(buttonText, elements.get(3).getText());
  }
Element finding test for the native view part of selendroid.

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