protected List<View> getTopLevelViews() {
    List<View> views = new ArrayList<View>();
    views.addAll(viewAnalyzer.getTopLevelViews());
    if (serverInstrumentation.getCurrentActivity() != null
        && serverInstrumentation.getCurrentActivity().getCurrentFocus() != null) {
      views.add(serverInstrumentation.getCurrentActivity().getCurrentFocus());
    }
    return views;
  }
This class contains the functionality to find an Android view with the tag name assigned to it
sample usage : WebElement element = (WebElement)webDriver.executeScript("findElementByAndroidTag", "view_test_tag");
@deprecated Please use new implemented extension mechanism
@see <a href="https://github.com/selendroid/selendroid-extension">extension mechanism Docu</a>
selendroid-server/src/main/java/io/selendroid/server/model/internal/execute_native/FindElementByAndroidTag.java