code: public static Condition value(final String expectedValue) {
      return new Condition("value") {
        @Override
        public boolean apply(Driver driver, WebElement element) {
          return Html.text.contains(getAttributeValue(element, "value"), expectedValue);
        }
  
        @Override
        public String toString() {
          return name + " '" + expectedValue + "'";
        }
      };
    }
docs: Assert that element has given "value" attribute as substring
  NB! Ignores difference in non-visible characters like spaces, non-breakable spaces, tabs, newlines  etc.
  
  <p>Sample: <code>$("input").shouldHave(value("12345 666 77"));</code></p>
  
  @param expectedValue expected value of "value" attribute