docs: public static Condition matchText(final String regex) {
      return new Condition("match text") {
        @Override
        public boolean apply(Driver driver, WebElement element) {
          return Html.text.matches(element.getText(), regex);
        }
  
        @Override
        public String toString() {
          return name + " '" + regex + '\'';
        }
      };
    }