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.
  • 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 rectangle
      negation - negation value
  • Method Details

    • newInstance

      protected RectangleConditionsImpl newInstance (boolean negationValue)
      Description copied from class: AbstractObjectConditions
      Creates a new instance of this condition.
      Specified by:
      newInstance in class AbstractObjectConditions<org.openqa.selenium.Rectangle>
      Parameters:
      negationValue - negation value
      Returns:
      new instance of this condition
    • not

      public RectangleConditionsImpl not()
      Description copied from interface: Conditions
      Negates this condition object.
      Specified by:
      not in interface Conditions<org.openqa.selenium.Rectangle>
      Specified by:
      not in interface RectangleConditions
      Overrides:
      not in class AbstractObjectConditions<org.openqa.selenium.Rectangle>
      Returns:
      a negated condition object
    • x

      public boolean x (int x)
      Description copied from interface: RectangleConditions
      Check that rectangle has the given x position.
      Specified by:
      x in interface RectangleConditions
      Parameters:
      x - x position
      Returns:
      true if rectangle has the given x position, false otherwise
    • x

      public IntegerConditions x()
      Description copied from interface: RectangleConditions
      Add advanced conditions on rectangle x position.
      Specified by:
      x in interface RectangleConditions
      Returns:
      advanced conditions builder on rectangle x position
    • y

      public boolean y (int y)
      Description copied from interface: RectangleConditions
      Check that rectangle has the given y position.
      Specified by:
      y in interface RectangleConditions
      Parameters:
      y - y position
      Returns:
      true if rectangle has the given y position, false otherwise
    • y

      public IntegerConditions y()
      Description copied from interface: RectangleConditions
      Add advanced conditions on rectangle y position.
      Specified by:
      y in interface RectangleConditions
      Returns:
      advanced conditions builder on rectangle y position
    • position

      public boolean position (int x, int y)
      Description copied from interface: RectangleConditions
      Check that rectangle has the given (x, y) position.
      Specified by:
      position in interface RectangleConditions
      Parameters:
      x - x position
      y - y position
      Returns:
      true if rectangle has the given (x, y) position, false otherwise
    • width

      public boolean width (int width)
      Description copied from interface: RectangleConditions
      Check that rectangle has the given width.
      Specified by:
      width in interface RectangleConditions
      Parameters:
      width - width
      Returns:
      true if rectangle has the given width, false otherwise
    • width

      public IntegerConditions width()
      Description copied from interface: RectangleConditions
      Add advanced conditions on rectangle width.
      Specified by:
      width in interface RectangleConditions
      Returns:
      advanced conditions builder on rectangle width
    • height

      public boolean height (int height)
      Description copied from interface: RectangleConditions
      Check that rectangle has the given height.
      Specified by:
      height in interface RectangleConditions
      Parameters:
      height - height
      Returns:
      true if rectangle has the given height, false otherwise
    • height

      public IntegerConditions height()
      Description copied from interface: RectangleConditions
      Add advanced conditions on rectangle height.
      Specified by:
      height in interface RectangleConditions
      Returns:
      advanced conditions builder on rectangle height
    • dimension

      public boolean dimension (int width, int height)
      Description copied from interface: RectangleConditions
      Check that rectangle has the given dimension.
      Specified by:
      dimension in interface RectangleConditions
      Parameters:
      width - width
      height - 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: RectangleConditions
      Check that rectangle has the given psition and dimension.
      Specified by:
      positionAndDimension in interface RectangleConditions
      Parameters:
      x - x position
      y - y position
      width - width
      height - height
      Returns:
      true if rectangle has the given dimension, false otherwise