Package org.fluentlenium.core.conditions
Class RectangleListConditionsImpl
- java.lang.Object
-
- org.fluentlenium.core.conditions.BaseObjectListConditions<org.openqa.selenium.Rectangle,RectangleConditions>
-
- org.fluentlenium.core.conditions.RectangleListConditionsImpl
-
- All Implemented Interfaces:
Conditions<org.openqa.selenium.Rectangle>,ConditionsObject<java.util.List<org.openqa.selenium.Rectangle>>,RectangleConditions
public class RectangleListConditionsImpl extends BaseObjectListConditions<org.openqa.selenium.Rectangle,RectangleConditions> implements RectangleConditions
Conditions for list of rectangles.
-
-
Field Summary
-
Fields inherited from class org.fluentlenium.core.conditions.BaseObjectListConditions
conditions, conditionsGetter, objectGetter
-
-
Constructor Summary
Constructors Constructor Description RectangleListConditionsImpl(Conditions<FluentWebElement> conditions)Creates a new list of rectangles conditions, using rectangle of the conditions elementRectangleListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,org.openqa.selenium.Rectangle> objectGetter, java.util.function.Function<FluentWebElement,RectangleConditions> conditionsGetter)Creates a new list of rectangles conditions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandimension(int width, int height)Check that rectangle has the given dimension.IntegerConditionsheight()Add advanced conditions on rectangle height.booleanheight(int height)Check that rectangle has the given height.RectangleListConditionsImplnot()Negates this condition object.booleanposition(int x, int y)Check that rectangle has the given (x, y) position.booleanpositionAndDimension(int x, int y, int width, int height)Check that rectangle has the given psition and dimension.IntegerConditionswidth()Add advanced conditions on rectangle width.booleanwidth(int width)Check that rectangle has the given width.IntegerConditionsx()Add advanced conditions on rectangle x position.booleanx(int x)Check that rectangle has the given x position.IntegerConditionsy()Add advanced conditions on rectangle y position.booleany(int y)Check that rectangle has the given y position.-
Methods inherited from class org.fluentlenium.core.conditions.BaseObjectListConditions
getActualObject, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Constructor Detail
-
RectangleListConditionsImpl
public RectangleListConditionsImpl(Conditions<FluentWebElement> conditions, java.util.function.Function<FluentWebElement,org.openqa.selenium.Rectangle> objectGetter, java.util.function.Function<FluentWebElement,RectangleConditions> conditionsGetter)
Creates a new list of rectangles conditions- Parameters:
conditions- rectangles conditionsobjectGetter- getter of the underlying rectangleconditionsGetter- getter of the underlying rectangle conditions
-
RectangleListConditionsImpl
public RectangleListConditionsImpl(Conditions<FluentWebElement> conditions)
Creates a new list of rectangles conditions, using rectangle of the conditions element- Parameters:
conditions- rectangles conditions
-
-
Method Detail
-
not
public RectangleListConditionsImpl not()
Description copied from interface:ConditionsNegates this condition object.- Specified by:
notin interfaceConditions<org.openqa.selenium.Rectangle>- Specified by:
notin interfaceRectangleConditions- Returns:
- a negated condition object
-
x
public boolean x(int x)
Description copied from interface:RectangleConditionsCheck that rectangle has the given x position.- Specified by:
xin interfaceRectangleConditions- Parameters:
x- x position- Returns:
- true if rectangle has the given x position, false otherwise
-
y
public boolean y(int y)
Description copied from interface:RectangleConditionsCheck that rectangle has the given y position.- Specified by:
yin interfaceRectangleConditions- Parameters:
y- y position- Returns:
- true if rectangle has the given y position, false otherwise
-
x
public IntegerConditions x()
Description copied from interface:RectangleConditionsAdd advanced conditions on rectangle x position.- Specified by:
xin interfaceRectangleConditions- Returns:
- advanced conditions builder on rectangle x position
-
y
public IntegerConditions y()
Description copied from interface:RectangleConditionsAdd advanced conditions on rectangle y position.- Specified by:
yin interfaceRectangleConditions- Returns:
- advanced conditions builder on rectangle y position
-
position
public boolean position(int x, int y)Description copied from interface:RectangleConditionsCheck that rectangle has the given (x, y) position.- Specified by:
positionin interfaceRectangleConditions- Parameters:
x- x positiony- y position- Returns:
- true if rectangle has the given (x, y) position, false otherwise
-
width
public boolean width(int width)
Description copied from interface:RectangleConditionsCheck that rectangle has the given width.- Specified by:
widthin interfaceRectangleConditions- Parameters:
width- width- Returns:
- true if rectangle has the given width, false otherwise
-
width
public IntegerConditions width()
Description copied from interface:RectangleConditionsAdd advanced conditions on rectangle width.- Specified by:
widthin interfaceRectangleConditions- Returns:
- advanced conditions builder on rectangle width
-
height
public boolean height(int height)
Description copied from interface:RectangleConditionsCheck that rectangle has the given height.- Specified by:
heightin interfaceRectangleConditions- Parameters:
height- height- Returns:
- true if rectangle has the given height, false otherwise
-
height
public IntegerConditions height()
Description copied from interface:RectangleConditionsAdd advanced conditions on rectangle height.- Specified by:
heightin interfaceRectangleConditions- Returns:
- advanced conditions builder on rectangle height
-
dimension
public boolean dimension(int width, int height)Description copied from interface:RectangleConditionsCheck that rectangle has the given dimension.- Specified by:
dimensionin interfaceRectangleConditions- Parameters:
width- widthheight- height- Returns:
- true if rectangle has the given dimension, false otherwise
-
positionAndDimension
public boolean positionAndDimension(int x, int y, int width, int height)Description copied from interface:RectangleConditionsCheck that rectangle has the given psition and dimension.- Specified by:
positionAndDimensionin interfaceRectangleConditions- Parameters:
x- x positiony- y positionwidth- widthheight- height- Returns:
- true if rectangle has the given dimension, false otherwise
-
-