code: @Then("^the element on index '(\\d+?)' has '(.+?)' as '(.+?)'$")
      public void assertSeleniumHasAttributeValue(Integer index, String attribute, String value) {
          assertThat(this.commonspec, commonspec.getPreviousWebElements()).as("There are less found elements than required")
                  .hasAtLeast(index);
          String val = commonspec.getPreviousWebElements().getPreviousWebElements().get(index).getAttribute(attribute);
          assertThat(this.commonspec, val).as("Attribute not found").isNotNull();
          assertThat(this.commonspec, val).as("Unexpected value for specified attribute").matches(value);
      }
docs: Verifies that a webelement previously found has {@code attribute} with {@code value} (as a regexp)
  
  @param index
  @param attribute
  @param value