Package io.fluentlenium.core.conditions
Class RectangleConditionsImpl
java.lang.Object
io.fluentlenium.core.conditions.AbstractObjectConditions<org.openqa.selenium.Rectangle>
io.fluentlenium.core.conditions.RectangleConditionsImpl
- All Implemented Interfaces:
Conditions<org.openqa.selenium.Rectangle>,ConditionsObject<org.openqa.selenium.Rectangle>,RectangleConditions
public class RectangleConditionsImpl
extends AbstractObjectConditions<org.openqa.selenium.Rectangle>
implements RectangleConditions
Conditions for rectangle.
-
Field Summary
Fields inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
negation, object -
Constructor Summary
ConstructorsConstructorDescriptionRectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle) Creates a new conditions object on rectangle.RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle, boolean negation) Creates a new conditions object on rectangle. -
Method Summary
Modifier and TypeMethodDescriptionbooleandimension(int width, int height) Check that rectangle has the given dimension.height()Add advanced conditions on rectangle height.booleanheight(int height) Check that rectangle has the given height.protected RectangleConditionsImplnewInstance(boolean negationValue) Creates a new instance of this condition.not()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.width()Add advanced conditions on rectangle width.booleanwidth(int width) Check that rectangle has the given width.x()Add advanced conditions on rectangle x position.booleanx(int x) Check that rectangle has the given x position.y()Add advanced conditions on rectangle y position.booleany(int y) Check that rectangle has the given y position.Methods inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
getActualObject, verifyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluentlenium.core.conditions.Conditions
verify
-
Constructor Details
-
RectangleConditionsImpl
public RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle) Creates a new conditions object on rectangle.- Parameters:
rectangle- underlying rectangle
-
RectangleConditionsImpl
public RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle, boolean negation) Creates a new conditions object on rectangle.- Parameters:
rectangle- underlying rectanglenegation- negation value
-
-
Method Details
-
newInstance
Description copied from class:AbstractObjectConditionsCreates a new instance of this condition.- Specified by:
newInstancein classAbstractObjectConditions<org.openqa.selenium.Rectangle>- Parameters:
negationValue- negation value- Returns:
- new instance of this condition
-
not
Description copied from interface:ConditionsNegates this condition object.- Specified by:
notin interfaceConditions<org.openqa.selenium.Rectangle>- Specified by:
notin interfaceRectangleConditions- Overrides:
notin classAbstractObjectConditions<org.openqa.selenium.Rectangle>- 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
-
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 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
-
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
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
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
-