@Override
  protected void runSingleStringAssertion(StringAssert assertThatHeader, String header) {

    assertThatHeader
        .overridingErrorMessage(
            "Expecting web page header NOT to match regexp '%s', but was '%s'",
            expectedHeader, header)
        .doesNotMatch(CommandUtils.patternOf(expectedHeader));
  }
    @Override
    protected void runSingleStringAssertion(StringAssert assertion, String elementText) {

      assertion
          .overridingErrorMessage(
              "Expecting inner text of web page element with selector '%s'"
                  + " to match regexp '%s', but text was '%s'",
              by, expectedText, elementText)
          .matches(CommandUtils.patternOf(expectedText));
    }