public static ExpectedCondition < Boolean > attributeToBeNotEmpty ( final WebElement element , final String attribute ) { return driver -> getAttributeOrCssValue ( element , attribute ) . isPresent ( ) ; }
An expectation for checking WebElement any non empty value for given attribute