Package org.testfx.robot
Interface DragRobot
- All Known Implementing Classes:
DragRobotImpl
public interface DragRobot
-
Method Summary
Modifier and TypeMethodDescriptionvoiddrag(javafx.scene.input.MouseButton... buttons) Presses the given mouse button(s) on whatever is under the mouse's current location.voiddrag(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.voiddrop()Releases the mouse at its' current position.voiddropBy(double x, double y) Moves the mouse horizontally byxand vertically byybefore releasing the mouse.voiddropTo(PointQuery pointQuery) Moves the mouse to the location specified by the givenPointQuery.query()and then releases the mouse.
-
Method Details
-
drag
void drag(javafx.scene.input.MouseButton... buttons) Presses the given mouse button(s) on whatever is under the mouse's current location.- Parameters:
buttons- the mouse buttons to press
-
drag
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.- Parameters:
pointQuery- the pointQuery that specifies where to move the mouse tobuttons- the mouse buttons to press
-
drop
void drop()Releases the mouse at its' current position. -
dropTo
Moves the mouse to the location specified by the givenPointQuery.query()and then releases the mouse.- Parameters:
pointQuery- the pointQuery that specifies where to move the mouse to
-
dropBy
void dropBy(double x, double y) Moves the mouse horizontally byxand vertically byybefore releasing the mouse.- Parameters:
x- the amount by which to move the mouse horizontallyy- the amount by which to move the mouse vertically
-