@Test
  public void shouldNotFindElementByCssSelector() throws Exception {
    openStartActivity();
    try {
      driver().findElement(By.cssSelector("button[id='linkId']"));
      Assert.fail("Finding Native elements by css selector is not supported.");
    } catch (WebDriverException e) {
      Assert.assertTrue(e.getMessage().contains(
          "By locator ByCssSelector is curently not supported!"));
    }
  }
Element finding test for the native view part of selendroid.

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