@Test()
  @Ignore("This is currently broken. See https://github.com/selendroid/selendroid/issues/800")
  public void shouldNotFindElementByIdFromPreviousActivity() {
    openStartActivity();
    driver().findElement(By.id("startUserRegistration")).click();
    new WebDriverWait(driver(), 5).until(ExpectedConditions.presenceOfElementLocated(By
        .id("inputUsername")));

    try {
      driver().findElement(By.id("buttonStartWebview"));
      Assert.fail("The element from previous screen should not be found.");
    } catch (NoSuchElementException e) {
      // // this element is located on previous activity and should not be found
    }
  }
Element finding test for the native view part of selendroid.

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