Class PointOption<T extends PointOption<T>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.openqa.selenium.Point coordinates  
    • Constructor Summary

      Constructors 
      Constructor Description
      PointOption()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> build()
      Creates a map based on the provided options.
      static PointOption point​(int xOffset, int yOffset)
      It creates a built instance of PointOption which takes x and y coordinates.
      static PointOption point​(org.openqa.selenium.Point offset)
      It creates a built instance of PointOption which takes x and y coordinates.
      protected void verify()
      This method is automatically called before building options map to verify the consistency of the instance.
      T withCoordinates​(int xOffset, int yOffset)
      It defines x and y coordinates.
      T withCoordinates​(org.openqa.selenium.Point offset)
      It defines x and y coordinates.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • coordinates

        protected org.openqa.selenium.Point coordinates
    • Constructor Detail

      • PointOption

        public PointOption()
    • Method Detail

      • point

        public static PointOption point​(org.openqa.selenium.Point offset)
        It creates a built instance of PointOption which takes x and y coordinates. This is offset from the upper left corner of the screen.
        Parameters:
        offset - is an offset value.
        Returns:
        a built option
      • point

        public static PointOption point​(int xOffset,
                                        int yOffset)
        It creates a built instance of PointOption which takes x and y coordinates. This is offset from the upper left corner of the screen.
        Parameters:
        xOffset - is x value.
        yOffset - is y value.
        Returns:
        a built option
      • withCoordinates

        public T withCoordinates​(org.openqa.selenium.Point offset)
        It defines x and y coordinates. This is offset from the upper left corner of the screen.
        Parameters:
        offset - is an offset value.
        Returns:
        self-reference
      • withCoordinates

        public T withCoordinates​(int xOffset,
                                 int yOffset)
        It defines x and y coordinates. This is offset from the upper left corner of the screen.
        Parameters:
        xOffset - is x value.
        yOffset - is y value.
        Returns:
        self-reference
      • verify

        protected void verify()
        Description copied from class: ActionOptions
        This method is automatically called before building options map to verify the consistency of the instance.
        Specified by:
        verify in class ActionOptions<T extends PointOption<T>>
      • build

        public java.util.Map<java.lang.String,​java.lang.Object> build()
        Description copied from class: ActionOptions
        Creates a map based on the provided options.
        Overrides:
        build in class ActionOptions<T extends PointOption<T>>
        Returns:
        options mapping.