Module org.testfx

Class MoveRobotImpl

    • Method Detail

      • moveTo

        public void moveTo​(PointQuery pointQuery,
                           Motion motion)
        Description copied from interface: MoveRobot
        Moves the mouse to the (x,y) position specified by the given PointQuery.query() using the specified motion (see: Motion) and clicks whatever is under it.
        Specified by:
        moveTo in interface MoveRobot
        Parameters:
        pointQuery - the pointQuery to move to
        motion - the type of motion to use for movement
      • moveBy

        public void moveBy​(double x,
                           double y,
                           Motion motion)
        Description copied from interface: MoveRobot
        Moves the mouse from the current location to the given (x, y) location. The movement is done using the given Motion.
        Specified by:
        moveBy in interface MoveRobot
        Parameters:
        x - the amount by which to move the mouse horizontally
        y - the amount by which to move the mouse vertically
        motion - the type of motion to use for movement