public void attribute ( String expectedAttribute ) { Set < String > attributes = checkAttribute ( expectedAttribute , 0 , 0 ) ; assertNotNull ( NO_ELEMENT_FOUND , attributes ) ; assertFalse ( "Attribute found: element attributes of '" + String . join ( "," , attributes ) + CONTAINS + expectedAttribute + "'" , attributes . contains ( expectedAttribute ) ) ; }
Asserts that the element does not contain the provided expected attribute . If the element isn t present this will constitute a failure same as a mismatch . This information will be logged and recorded with a screenshot for traceability and added debugging support .