@Test
  public void shouldNotFindElementByXPath() {
    openWebdriverTestPage(HtmlTestData.FORM_PAGE);

    try {
      driver().findElement(By.xpath("//*[@id='notThere']"));
      Assert.fail("Should not have succeeded");
    } catch (NoSuchElementException e) {
      // this is expected
    }
  }
Element finding test for the web view part of selendroid.

@author ddary
selendroid-test-app/src/test/java/io/selendroid/webviewdrivertests/WebElementFindingTest.java