public List<String> getDirNameList() {
    List<String> dirNameList = new ArrayList<>();
    for (WebElement dir : dirs) {
      if (dirNameIsValid(dir.getText())) {
        dirNameList.add(dir.getText() + "/");
      }
    }
    return dirNameList;
  }
Determine whether the item name is a valid directory that contains test

@param itemName name of the item to validate
@return true if the item name is a valid directory that contains test
KITE-WPT-Test/src/main/java/org/webrtc/kite/wpt/pages/WPTDirPage.java