code: public static ElementSelector selectorForElementNamed(final String expectedName,
                                                            final ElementSelector es) {
          if (expectedName == null) {
              throw new IllegalArgumentException("expectedName must not be null");
          }
  
          return conditionalSelector(elementNamePredicate(expectedName), es);
      }
docs: Applies the wrapped ElementSelector's logic if and only if the
  control element has the given (local) name.