public void selectByLocator(String generalLocator) {
    String[] methods = StringUtil.getSplitByFirst(generalLocator, "=");
    if (methods != null) {
      String type = methods[0];
      String locator = methods[1];
      if ("value".equals(type)) {
        selectByValue(locator);
      } else if ("id".equals(type)) {
        selectById(locator);
      } else if ("index".equals(type)) {
        selectByIndex(locator);
      } else if ("label".equals(type)) {
        selectByVisibleText(locator);
      } else {
        selectByDefault(generalLocator);
      }
    } else {
      selectByDefault(generalLocator);
    }
  }