Class MouseActions


  • public class MouseActions
    extends Object
    • Constructor Detail

      • MouseActions

        public MouseActions​(FlaNiumDriver flaNiumDriver)
    • Method Detail

      • dragAndDrop

        public void dragAndDrop​(int x,
                                int y,
                                int dx,
                                int dy)
        Drags and drops the mouse from the starting point with the given distance.
        Parameters:
        x - X coordinate of the start point.
        y - Y coordinate of the start point.
        dx - The x distance to drag and drop, + for right, - for left.
        dy - The y distance to drag and drop, + for down, - for up.
      • smoothDragAndDrop

        public void smoothDragAndDrop​(int x,
                                      int y,
                                      int dx,
                                      int dy,
                                      int duration)
        Drags and drops the mouse from the starting point with the given distance within the specified time.
        Parameters:
        x - X coordinate of the start point.
        y - Y coordinate of the start point.
        dx - The x distance to drag and drop, + for right, - for left.
        dy - The y distance to drag and drop, + for down, - for up.
        duration - Execution time in milliseconds.