Package com.github.loyada.jdollarx
Interface ElementPropertyWithNumericalBoundaries
-
- All Superinterfaces:
ElementProperty
public interface ElementPropertyWithNumericalBoundaries extends ElementProperty
Used to define a constraint on a number of elements
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementProperty
orLess()
Given the a property and and a count of it, returns a property equivalent to at most the count of that property.ElementProperty
orMore()
Given the a property and and a count of it, returns a property equivalent to at least the count of that property.-
Methods inherited from interface com.github.loyada.jdollarx.ElementProperty
and, andNot, or, toXpath
-
-
-
-
Method Detail
-
orMore
ElementProperty orMore()
Given the a property and and a count of it, returns a property equivalent to at least the count of that property. This works only with specific properties. For example: div.that(hasNChildren(2).orMore())- Returns:
- a property equivalent to at least the count of that property
-
orLess
ElementProperty orLess()
Given the a property and and a count of it, returns a property equivalent to at most the count of that property. This works only with specific properties. For example: div.that(hasNChildren(2).orLess())- Returns:
- a property equivalent to at most the count of that property
-
-