Package org.testfx.robot.impl
Class DragRobotImpl
java.lang.Object
org.testfx.robot.impl.DragRobotImpl
- All Implemented Interfaces:
DragRobot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
drag
(javafx.scene.input.MouseButton... buttons) Presses the given mouse button(s) on whatever is under the mouse's current location.void
drag
(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons) Moves the mouse to the location specified by the givenPointQuery.query()
and then presses the given mouse button(s) on whatever is under the mouse's new location.void
drop()
Releases the mouse at its' current position.void
dropBy
(double x, double y) Moves the mouse horizontally byx
and vertically byy
before releasing the mouse.void
dropTo
(PointQuery pointQuery) Moves the mouse to the location specified by the givenPointQuery.query()
and then releases the mouse.
-
Field Details
-
mouseRobot
-
moveRobot
-
-
Constructor Details
-
DragRobotImpl
-
-
Method Details
-
drag
public void drag(javafx.scene.input.MouseButton... buttons) Description copied from interface:DragRobot
Presses the given mouse button(s) on whatever is under the mouse's current location. -
drag
Description copied from interface:DragRobot
Moves the mouse to the location specified by the givenPointQuery.query()
and then presses the given mouse button(s) on whatever is under the mouse's new location. -
drop
public void drop()Description copied from interface:DragRobot
Releases the mouse at its' current position. -
dropTo
Description copied from interface:DragRobot
Moves the mouse to the location specified by the givenPointQuery.query()
and then releases the mouse. -
dropBy
public void dropBy(double x, double y) Description copied from interface:DragRobot
Moves the mouse horizontally byx
and vertically byy
before releasing the mouse.
-