io.fluentlenium.assertj.custom.AttributeAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluentlenium-assertj Show documentation
Show all versions of fluentlenium-assertj Show documentation
AssertJ Extension for FluentLenium
The newest version!
package io.fluentlenium.assertj.custom;
import org.assertj.core.api.AbstractAssert;
/**
* Base assertion interface for attribute validation within a single attribute value or a list of attribute values.
*
* @param the type of AssertJ assert to return
*/
public interface AttributeAssert {
/**
* Checks if the element, or at least one element in a list of elements, has the given property.
*
* It allows users to do not just presence validation but to apply chained assertions
* to further validate the attribute values.
*
* @param attribute the attribute to find
* @return a new assert object with the actual attribute value
*/
T hasAttribute(String attribute);
/**
* Checks if the element doesn't have, or no element in a list of elements has, the given property.
*
* @param attribute attribute to find the absence of
* @return {@code this} assertion object.
*/
AbstractAssert hasNotAttribute(String attribute);
}