default ElementProperty |
ElementProperty.and(ElementProperty prop) |
returns a new property, that is a combination of the current property AND the given property parameter.
|
default ElementProperty |
ElementProperty.andNot(ElementProperty prop) |
returns a new property, that is equivalent to the current property, BUT NOT the property parameter.
|
static ElementProperty |
ElementProperties.contains(NPath nPath) |
Element contains at-least/at-most/exactly the given number of the given element.
|
static ElementProperty |
ElementProperties.contains(Path... paths) |
The given elements in the parameters list are contained in the current element
|
static ElementProperty |
ElementProperties.hasAggregatedCaseSensitiveTextContaining(String txt) |
When aggregating all the text under this element, it contains the given substring.
|
static ElementProperty |
ElementProperties.hasAggregatedCaseSensitiveTextEqualTo(String txt) |
When aggregating all the text under this element, it equals to the given parameter.
|
static ElementProperty |
ElementProperties.hasAggregatedTextContaining(String txt) |
When aggregating all the text under this element, it contains the given substring (ignoring case)
|
static ElementProperty |
ElementProperties.hasAggregatedTextEndingWith(String txt) |
When aggregating all the text under this element, it ends with the given substring (ignoring case)
|
static ElementProperty |
ElementProperties.hasAggregatedTextEqualTo(String txt) |
When aggregating all the text under this element, it equals to the given parameter.
|
static ElementProperty |
ElementProperties.hasAggregatedTextStartingWith(String txt) |
When aggregating all the text under this element, it starts with the given substring (ignoring case)
|
static ElementProperty |
ElementProperties.hasAncesctor(Path path) |
Element is inside the given parameter
|
static ElementProperty |
ElementProperties.hasAnyOfClasses(String... cssClasses) |
Element that has at least one of the classes given
|
static ElementProperty |
ElementProperties.hasAriaLabel(String txt) |
Element has aria-label attribute equal to the given txt
|
static ElementProperty |
ElementProperties.hasAttribute(String attribute,
String value) |
|
static ElementProperty |
ElementProperties.hasCaseSensitiveText(String txt) |
Element has text equals to the given string parameter.
|
static ElementProperty |
ElementProperties.hasCaseSensitiveTextContaining(String txt) |
The text in the element contains the given parameter.
|
static ElementProperty |
ElementProperties.hasChild(Path... paths) |
Element is the parent of the given list of elements
|
static ElementProperty |
ElementProperties.hasClass(String className) |
Has the class given in the parameter
|
static ElementProperty |
ElementProperties.hasClassContaining(String classSubString) |
Element that has a class with name that contain the given parameter
|
static ElementProperty |
ElementProperties.hasClasses(String... cssClasses) |
Element that has all of the given classes
|
static ElementProperty |
ElementProperties.hasDescendant(Path... paths) |
The given elements in the parameters list are contained in the current element
|
static ElementProperty |
ElementProperties.hasId(String id) |
Element has ID equals to the given parameter
|
static ElementProperty |
ElementProperties.hasName(String name) |
Element with a "name" attribute equal to the given parameter.
|
static ElementProperty |
ElementProperties.hasNonOfTheClasses(String... cssClasses) |
Element that has none of the given classes
|
static ElementProperty |
ElementProperties.hasParent(Path path) |
Element is direct child of the element matched by the given parameter
|
static <T,V> ElementProperty |
CustomElementProperties.hasProperty(BiFunction<T,V,ElementProperty> propertyGen,
T t,
V v) |
|
static <T> ElementProperty |
CustomElementProperties.hasProperty(Function<T,ElementProperty> propertyGen,
T t) |
Syntactic sugar that allows to define properties of the form:
|
static ElementProperty |
ElementProperties.hasRawXpathProperty(String rawXpathProps,
String rawExplanation) |
Custom property that allows to state the raw expath of a property, and give a string description of it.
|
static ElementProperty |
ElementProperties.hasRef(String ref) |
Element with a "ref" attribute equal to the given role.
|
static ElementProperty |
ElementProperties.hasRole(String role) |
Element with a "role" attribute equal to the given role.
|
static ElementProperty |
ElementProperties.hasSource(String src) |
Element with a "src" attribute equal to the given parameter.
|
static ElementProperty |
ElementProperties.hasText(String txt) |
Element has text equals to the given string parameter, ignoring case.
|
static ElementProperty |
ElementProperties.hasTextContaining(String txt) |
The text in the element contains the given parameter, ignoring case
|
static ElementProperty |
ElementProperties.hasTextEndingWith(String txt) |
Element has text that ends with the given parameter
|
static ElementProperty |
ElementProperties.hasTextStartingWith(String txt) |
Element has text that starts with the given parameter
|
static ElementProperty |
HighLevelPaths.hasType(String theType) |
|
static ElementProperty |
ElementProperties.isAfter(NPath nPath) |
Element is after at-least/at-most/exactly the given number of the given element.
|
static ElementProperty |
ElementProperties.isAfter(Path... paths) |
Element appears after all the given parameters in the document
|
static ElementProperty |
ElementProperties.isAfterSibling(NPath nPath) |
Element is a sibling of the at-least/at-most/exactly n elements given, and appears after them.
|
static ElementProperty |
ElementProperties.isAfterSibling(Path... paths) |
Element is a sibling of all the elements defined by the given paths, AND is after all those siblings
|
static ElementProperty |
ElementProperties.isAncestorOf(Path... paths) |
The given elements in the parameters list are contained in the current element
|
static ElementProperty |
ElementProperties.isBefore(NPath nPath) |
Element is before at-least/at-most/exactly the given number of the given element.
|
static ElementProperty |
ElementProperties.isBefore(Path... paths) |
Element is before all the elements given in the parameters
|
static ElementProperty |
ElementProperties.isBeforeSibling(NPath nPath) |
Element is a sibling of the at-least/at-most/exactly n elements given, and appears before them.
|
static ElementProperty |
ElementProperties.isBeforeSibling(Path... paths) |
Element is a sibling of all the elements defined by the given paths, AND is before all those siblings
|
static ElementProperty |
ElementProperties.isChildOf(Path path) |
Element is direct child of the element matched by the given parameter
|
static ElementProperty |
ElementProperties.isContainedIn(Path path) |
|
static ElementProperty |
ElementProperties.isDescendantOf(Path path) |
Element is inside the given parameter
|
static ElementProperty |
ElementProperties.isInside(Path path) |
Element is inside the given parameter
|
static ElementProperty |
ElementProperties.isNthFromLastSibling(Integer reverseIndex) |
The element is the nth-from-last sibling.
|
static ElementProperty |
ElementProperties.isNthSibling(Integer index) |
The element is the nth sibling.
|
static ElementProperty |
ElementProperties.isParentOf(NPath nPath) |
Element is parent of at-least/at-most/exactly the given number of the given element.
|
static ElementProperty |
ElementProperties.isParentOf(Path... paths) |
Element is the parent of the given list of elements
|
static ElementProperty |
ElementProperties.isSiblingOf(Path... paths) |
Element is a sibling of all the elements defined by the given paths
|
static ElementProperty |
ElementProperties.isWithIndex(Integer index) |
Element that is the nth sibling of its parent
|
static ElementProperty |
ElementProperties.not(ElementProperty prop) |
Element does NOT have the given property.
|
default ElementProperty |
ElementProperty.or(ElementProperty prop) |
returns a new property, that is a combination of the current property OR the given property parameter.
|
ElementProperty |
ElementPropertyWithNumericalBoundaries.orLess() |
Given the a property and and a count of it, returns a property equivalent to at most the count of that property.
|
ElementProperty |
ElementPropertyWithNumericalBoundaries.orMore() |
Given the a property and and a count of it, returns a property equivalent to at least the count of that property.
|
static ElementProperty |
ElementProperties.withIndexInRange(int first,
int last) |
The index among its siblings is between first and last parameters.
|