Class RectangleConditionsImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      RectangleConditionsImpl​(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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean dimension​(int width, int height)
      Check that rectangle has the given dimension.
      IntegerConditions height()
      Add advanced conditions on rectangle height.
      boolean height​(int height)
      Check that rectangle has the given height.
      protected RectangleConditionsImpl newInstance​(boolean negationValue)
      Creates a new instance of this condition.
      RectangleConditionsImpl not()
      Negates this condition object.
      boolean position​(int x, int y)
      Check that rectangle has the given (x, y) position.
      boolean positionAndDimension​(int x, int y, int width, int height)
      Check that rectangle has the given psition and dimension.
      IntegerConditions width()
      Add advanced conditions on rectangle width.
      boolean width​(int width)
      Check that rectangle has the given width.
      IntegerConditions x()
      Add advanced conditions on rectangle x position.
      boolean x​(int x)
      Check that rectangle has the given x position.
      IntegerConditions y()
      Add advanced conditions on rectangle y position.
      boolean y​(int y)
      Check that rectangle has the given y position.
      • 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

      • 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 Detail

      • 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
      • 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
      • 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
      • 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
      • 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