- java.lang.Object
-
- org.testfx.api.FxRobot
-
- All Implemented Interfaces:
FxRobotInterface
public class FxRobot extends Object implements FxRobotInterface
-
-
Constructor Summary
Constructors Constructor Description FxRobot()
Constructs all robot-related implementations and setstargetPos(Pos)
toPos.CENTER
.
-
Method Summary
Modifier and Type Method Description BoundsQuery
bounds(double minX, double minY, double width, double height)
BoundsQuery
bounds(String query)
NOT YET IMPLEMENTED<T extends javafx.scene.Node>
BoundsQuerybounds(Predicate<T> predicate)
NOT YET IMPLEMENTEDBoundsQuery
bounds(javafx.geometry.Bounds bounds)
Creates aBoundsQuery
that returns the given boundsBoundsQuery
bounds(javafx.geometry.Point2D point)
BoundsQuery
bounds(javafx.scene.Node node)
BoundsQuery
bounds(javafx.scene.Scene scene)
CallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)
with given scene's boundsBoundsQuery
bounds(javafx.stage.Window window)
CallsBoundsQueryUtils.boundsOnScreen(Bounds, Window)
with the given window's bounds<T extends javafx.scene.Node>
BoundsQuerybounds(org.hamcrest.Matcher<T> matcher)
NOT YET IMPLEMENTEDCapture
capture(URL url)
Capture
capture(Path path)
Capture
capture(javafx.geometry.Bounds bounds)
Returns aCapture
that supplies a screenshot using the given bounds.Capture
capture(javafx.geometry.Rectangle2D screenRegion)
Returns aCapture
that supplies a screenshot using the given rectangle's bounds.Capture
capture(javafx.scene.image.Image image)
Convenience method: Returns aCapture
that supplies the givenImage
.Capture
capture(javafx.scene.Node node)
Returns aCapture
that supplies a screenshot using the given node's bounds.FxRobot
clickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given coordinates, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
, clicks the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotclickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given point, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(javafx.scene.input.MouseButton... buttons)
CallsClickRobot.clickOn(MouseButton...)
and returns itself for more method chaining.FxRobot
clickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
, clicks the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotclickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
, clicks the given buttons, and returns itself for method chaining.FxRobot
clickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
CallsClickRobot.clickOn(PointQuery, MouseButton...)
and returns itself for more method chaining.FxRobot
closeCurrentWindow()
Deprecated.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms.FxRobot
doubleClickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(double, double)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
, double clicks the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdoubleClickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(javafx.scene.input.MouseButton... buttons)
CallsClickRobot.doubleClickOn(MouseButton...)
and returns itself for more method chaining.FxRobot
doubleClickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
, double clicks the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdoubleClickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
, double clicks the given buttons, and returns itself for method chaining.FxRobot
doubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
CallsClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...)
and returns itself for method chaining.FxRobot
drag(double x, double y, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(double, double)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(String query, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(String)
, presses the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdrag(Predicate<T> predicate, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Bounds)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Point2D)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(javafx.scene.input.MouseButton... buttons)
CallsDragRobot.drag(MouseButton...)
and returns itself for more method chaining.FxRobot
drag(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Node)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Scene)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Window)
, presses the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdrag(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Matcher)
, presses the given buttons, and returns itself for method chaining.FxRobot
drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
CallsDragRobot.drag(PointQuery, MouseButton...)
and returns itself for more method chaining.FxRobot
drop()
CallsDragRobot.drop()
and returns itself for more method chaining.FxRobot
dropBy(double x, double y)
CallsDragRobot.dropBy(double, double)
and returns itself for more method chaining.FxRobot
dropTo(double x, double y)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(double, double)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(String query)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(String)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdropTo(Predicate<T> predicate)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(javafx.geometry.Bounds bounds)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Bounds)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(javafx.geometry.Point2D point)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Point2D)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(javafx.scene.Node node)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Node)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(javafx.scene.Scene scene)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Scene)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(javafx.stage.Window window)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Window)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdropTo(org.hamcrest.Matcher<T> matcher)
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Matcher)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.FxRobot
dropTo(PointQuery pointQuery)
CallsDragRobot.dropTo(PointQuery)
and returns itself for more method chaining.FxRobot
eraseText(int amount)
Convenience method: CallsTypeRobot.type(KeyCode, int)
withKeyCode.BACK_SPACE
and returns itself for more method chaining.NodeQuery
from(Collection<javafx.scene.Node> parentNodes)
CallsNodeFinder.from(Collection)
and returns itself for method chaining.NodeQuery
from(javafx.scene.Node... parentNodes)
CallsNodeFinder.from(Node...)
and returns itself for method chaining.NodeQuery
from(NodeQuery nodeQuery)
Convenience method: CallsNodeFinder.from(NodeQuery)
and returns itself for method chaining.NodeQuery
fromAll()
CallsNodeFinder.fromAll()
and returns itself for method chaining.FxRobot
interact(Runnable runnable)
Calls a runnable on the FX application thread and waits for it and consecutive events to execute.<T> FxRobot
interact(Callable<T> callable)
Calls a callable on the FX application thread and waits for it and consecutive events to execute.FxRobot
interactNoWait(Runnable runnable)
Calls a runnable on the FX application thread and waits for it to execute.<T> FxRobot
interactNoWait(Callable<T> callable)
Calls a callable on the FX application thread and waits for it to execute.FxRobot
interrupt()
CallsWaitForAsyncUtils.waitForFxEvents()
and returns itself for method chaining.FxRobot
interrupt(int attemptsCount)
CallsWaitForAsyncUtils.waitForFxEvents(int)
and returns itself for method chaining.List<javafx.stage.Window>
listTargetWindows()
CallsWindowFinder.listTargetWindows()
and returns itself for method chaining.List<javafx.stage.Window>
listWindows()
CallsWindowFinder.listWindows()
()} and returns itself for method chaining.NodeQuery
lookup(String query)
Convenience method: CallsNodeFinder.lookup(String)
and returns itself for method chaining.<T extends javafx.scene.Node>
NodeQuerylookup(Predicate<T> predicate)
Convenience method: CallsNodeFinder.lookup(Predicate)
and returns itself for method chaining.<T extends javafx.scene.Node>
NodeQuerylookup(org.hamcrest.Matcher<T> matcher)
Convenience method: CallsNodeFinder.lookup(Matcher)
and returns itself for method chaining.FxRobot
moveBy(double x, double y, Motion motion)
CallsMoveRobot.moveBy(double, double, Motion)
and returns itself for more method chaining.FxRobot
moveTo(double x, double y, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(double, double)
and returns itself for method chaining.FxRobot
moveTo(String query, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotmoveTo(Predicate<T> predicate, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
and returns itself for method chaining.FxRobot
moveTo(javafx.geometry.Bounds bounds, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
and returns itself for method chaining.FxRobot
moveTo(javafx.geometry.Point2D point, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
and returns itself for method chaining.FxRobot
moveTo(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, javafx.geometry.Point2D offset, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, with the given offset (from theoffsetReferencePos
, and returns itself for method chaining.FxRobot
moveTo(javafx.scene.Scene scene, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
and returns itself for method chaining.FxRobot
moveTo(javafx.stage.Window window, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotmoveTo(org.hamcrest.Matcher<T> matcher, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
and returns itself for method chaining.FxRobot
moveTo(PointQuery pointQuery, Motion motion)
CallsMoveRobot.moveTo(PointQuery, Motion)
and returns itself for more method chaining.PointQuery
offset(String query, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(String)
and sets the query's offset by the given offset values.<T extends javafx.scene.Node>
PointQueryoffset(Predicate<T> predicate, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Predicate)
and sets the query's offset by the given offset values.PointQuery
offset(javafx.geometry.Bounds bounds, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Bounds)
and sets the query's offset by the given offset values.PointQuery
offset(javafx.geometry.Point2D point, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Point2D)
and sets the query's offset by the given offset values.PointQuery
offset(javafx.scene.Node node, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Node)
and sets the query's offset by the given offset values.PointQuery
offset(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Node)
and sets the query's offset by the given offset values where the offset is computed with respect to the given offset reference position.PointQuery
offset(javafx.scene.Scene scene, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Scene)
and sets the query's offset by the given offset values.PointQuery
offset(javafx.stage.Window window, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Window)
and sets the query's offset by the given offset values.<T extends javafx.scene.Node>
PointQueryoffset(org.hamcrest.Matcher<T> matcher, double offsetX, double offsetY)
Convenience method: CallsFxRobotInterface.point(Matcher)
and sets the query's offset by the given offset values.PointQuery
point(double x, double y)
CallsPointLocator.point(Point2D)
usingnew Point2D(x, y)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.PointQuery
point(String query)
Convenience method: Tries to find a given node viaFxRobotInterface.lookup(String)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.<T extends javafx.scene.Node>
PointQuerypoint(Predicate<T> predicate)
Convenience method: Tries to find a given node viaFxRobotInterface.lookup(Predicate)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.PointQuery
point(javafx.geometry.Bounds bounds)
CallsPointLocator.point(Bounds)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.PointQuery
point(javafx.geometry.Point2D point)
CallsPointLocator.point(Point2D)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.PointQuery
point(javafx.scene.Node node)
CallsPointLocator.point(Node)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.PointQuery
point(javafx.scene.Scene scene)
CallsPointLocator.point(Scene)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.PointQuery
point(javafx.stage.Window window)
CallsPointLocator.point(Window)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.<T extends javafx.scene.Node>
PointQuerypoint(org.hamcrest.Matcher<T> matcher)
Convenience method: Tries to find a given node viaFxRobotInterface.lookup(Matcher)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.FxRobot
press(javafx.scene.input.KeyCode... keys)
CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.FxRobot
press(javafx.scene.input.MouseButton... buttons)
Presses and holds mouse buttons.FxRobot
push(javafx.scene.input.KeyCode... combination)
CallsTypeRobot.push(KeyCode...)
and returns itself for more method chaining.FxRobot
push(javafx.scene.input.KeyCodeCombination combination)
CallsTypeRobot.push(KeyCodeCombination)
and returns itself for more method chaining.FxRobot
release(javafx.scene.input.KeyCode... keys)
CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.FxRobot
release(javafx.scene.input.MouseButton... buttons)
Releases pressed mouse buttons.FxRobot
rightClickOn()
Convenience method: Clicks theMouseButton.SECONDARY
button and returns itself for method chaining.FxRobot
rightClickOn(double x, double y, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given coordinates, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(String query, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotrightClickOn(Predicate<T> predicate, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(javafx.geometry.Bounds bounds, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(javafx.geometry.Point2D point, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(javafx.scene.Node node, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(javafx.scene.Scene scene, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(javafx.stage.Window window, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotrightClickOn(org.hamcrest.Matcher<T> matcher, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.FxRobot
rightClickOn(PointQuery pointQuery, Motion motion)
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromPointQuery.query()
, clicks theMouseButton.SECONDARY
button and returns itself for method chaining.FxRobotContext
robotContext()
Returns the internal context.javafx.scene.Node
rootNode(javafx.scene.Node node)
CallsNodeFinder.rootNode(Node)
and returns itself for method chaining.javafx.scene.Node
rootNode(javafx.scene.Scene scene)
CallsNodeFinder.rootNode(Scene)
and returns itself for method chaining.javafx.scene.Node
rootNode(javafx.stage.Window window)
CallsNodeFinder.rootNode(Window)
and returns itself for method chaining.FxRobot
scroll(int amount)
Deprecated.FxRobot
scroll(int amount, javafx.geometry.HorizontalDirection direction)
CallsScrollRobot.scroll(int, HorizontalDirection)
and returns itself for more method chaining.FxRobot
scroll(int amount, javafx.geometry.VerticalDirection direction)
CallsScrollRobot.scroll(int, VerticalDirection)
and returns itself for more method chaining.FxRobot
scroll(javafx.geometry.HorizontalDirection direction)
CallsScrollRobot.scroll(int, VerticalDirection)
with arguments1
anddirection
and returns itself for more method chaining.FxRobot
scroll(javafx.geometry.VerticalDirection direction)
CallsScrollRobot.scroll(int, VerticalDirection)
with arguments1
anddirection
and returns itself for more method chaining.FxRobot
sleep(long milliseconds)
CallsSleepRobot.sleep(long)
and returns itself for more method chaining.FxRobot
sleep(long duration, TimeUnit timeUnit)
CallsSleepRobot.sleep(long, TimeUnit)
and returns itself for more method chaining.FxRobot
targetPos(javafx.geometry.Pos pointPosition)
Stores the given position as the position to be used in allpoint()
-related methods such asFxRobotInterface.point(Node)
andFxRobotInterface.point(Point2D)
, and returns itself for method chaining.javafx.stage.Window
targetWindow()
CallsWindowFinder.targetWindow()
and returns itself for method chaining.FxRobot
targetWindow(int windowNumber)
Convenience method: CallsWindowFinder.targetWindow(int)
and returns itself for method chaining.FxRobot
targetWindow(String stageTitleRegex)
Convenience method: CallsWindowFinder.targetWindow(String)
and returns itself for method chaining.FxRobot
targetWindow(Predicate<javafx.stage.Window> predicate)
CallsWindowFinder.targetWindow(Predicate)
and returns itself for method chaining.FxRobot
targetWindow(Pattern stageTitlePattern)
Convenience method: CallsWindowFinder.targetWindow(Pattern)
and returns itself for method chaining.FxRobot
targetWindow(javafx.scene.Node node)
Convenience method: CallsWindowFinder.targetWindow(Node)
and returns itself for method chaining.FxRobot
targetWindow(javafx.scene.Scene scene)
Convenience method: CallsWindowFinder.targetWindow(Scene)
and returns itself for method chaining.FxRobot
targetWindow(javafx.stage.Window window)
CallsWindowFinder.targetWindow(Window)
and returns itself for method chaining.FxRobot
type(javafx.scene.input.KeyCode... keyCodes)
CallsTypeRobot.type(KeyCode...)
and returns itself for more method chaining.FxRobot
type(javafx.scene.input.KeyCode keyCode, int times)
CallsTypeRobot.type(KeyCode, int)
and returns itself for more method chaining.javafx.stage.Window
window(int windowIndex)
Convenience method: CallsWindowFinder.window(int)
and returns itself for method chaining.javafx.stage.Window
window(String stageTitleRegex)
Convenience method: CallsWindowFinder.window(String)
and returns itself for method chaining.javafx.stage.Window
window(Predicate<javafx.stage.Window> predicate)
CallsWindowFinder.window(Predicate)
and returns itself for method chaining.javafx.stage.Window
window(Pattern stageTitlePattern)
Convenience method: CallsWindowFinder.window(Pattern)
and returns itself for method chaining.javafx.stage.Window
window(javafx.scene.Node node)
Convenience method: CallsWindowFinder.window(Node)
and returns itself for method chaining.javafx.stage.Window
window(javafx.scene.Scene scene)
Convenience method: CallsWindowFinder.window(Scene)
and returns itself for method chaining.FxRobot
write(char character)
CallsWriteRobot.write(char)
and returns itself for more method chaining.FxRobot
write(String text)
CallsWriteRobot.write(String)
and returns itself for more method chaining.FxRobot
write(String text, int sleepMillis)
CallsWriteRobot.write(String, int)
and returns itself for more method chaining.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testfx.api.FxRobotInterface
clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, moveBy, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, offset, offset, offset, offset, offset, offset, offset, offset, offset, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn
-
-
-
-
Constructor Detail
-
FxRobot
public FxRobot()
Constructs all robot-related implementations and setstargetPos(Pos)
toPos.CENTER
.
-
-
Method Detail
-
robotContext
public FxRobotContext robotContext()
Returns the internal context.
-
targetWindow
public javafx.stage.Window targetWindow()
Description copied from interface:FxRobotInterface
CallsWindowFinder.targetWindow()
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(javafx.stage.Window window)
Description copied from interface:FxRobotInterface
CallsWindowFinder.targetWindow(Window)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(Predicate<javafx.stage.Window> predicate)
Description copied from interface:FxRobotInterface
CallsWindowFinder.targetWindow(Predicate)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(int windowNumber)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(int)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(String stageTitleRegex)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(String)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(Pattern stageTitlePattern)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(Pattern)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(Scene)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(Node)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
listWindows
public List<javafx.stage.Window> listWindows()
Description copied from interface:FxRobotInterface
CallsWindowFinder.listWindows()
()} and returns itself for method chaining.- Specified by:
listWindows
in interfaceFxRobotInterface
-
listTargetWindows
public List<javafx.stage.Window> listTargetWindows()
Description copied from interface:FxRobotInterface
CallsWindowFinder.listTargetWindows()
and returns itself for method chaining.- Specified by:
listTargetWindows
in interfaceFxRobotInterface
-
window
public javafx.stage.Window window(Predicate<javafx.stage.Window> predicate)
Description copied from interface:FxRobotInterface
CallsWindowFinder.window(Predicate)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
window
public javafx.stage.Window window(int windowIndex)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.window(int)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
window
public javafx.stage.Window window(String stageTitleRegex)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.window(String)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
window
public javafx.stage.Window window(Pattern stageTitlePattern)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.window(Pattern)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
window
public javafx.stage.Window window(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.window(Scene)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
window
public javafx.stage.Window window(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.window(Node)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
fromAll
public NodeQuery fromAll()
Description copied from interface:FxRobotInterface
CallsNodeFinder.fromAll()
and returns itself for method chaining.- Specified by:
fromAll
in interfaceFxRobotInterface
-
from
public NodeQuery from(javafx.scene.Node... parentNodes)
Description copied from interface:FxRobotInterface
CallsNodeFinder.from(Node...)
and returns itself for method chaining.- Specified by:
from
in interfaceFxRobotInterface
-
from
public NodeQuery from(Collection<javafx.scene.Node> parentNodes)
Description copied from interface:FxRobotInterface
CallsNodeFinder.from(Collection)
and returns itself for method chaining.- Specified by:
from
in interfaceFxRobotInterface
-
from
public NodeQuery from(NodeQuery nodeQuery)
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.from(NodeQuery)
and returns itself for method chaining.- Specified by:
from
in interfaceFxRobotInterface
-
lookup
public NodeQuery lookup(String query)
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.lookup(String)
and returns itself for method chaining.- Specified by:
lookup
in interfaceFxRobotInterface
-
lookup
public <T extends javafx.scene.Node> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.lookup(Matcher)
and returns itself for method chaining.- Specified by:
lookup
in interfaceFxRobotInterface
-
lookup
public <T extends javafx.scene.Node> NodeQuery lookup(Predicate<T> predicate)
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.lookup(Predicate)
and returns itself for method chaining.- Specified by:
lookup
in interfaceFxRobotInterface
-
rootNode
public javafx.scene.Node rootNode(javafx.stage.Window window)
Description copied from interface:FxRobotInterface
CallsNodeFinder.rootNode(Window)
and returns itself for method chaining.- Specified by:
rootNode
in interfaceFxRobotInterface
-
rootNode
public javafx.scene.Node rootNode(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterface
CallsNodeFinder.rootNode(Scene)
and returns itself for method chaining.- Specified by:
rootNode
in interfaceFxRobotInterface
-
rootNode
public javafx.scene.Node rootNode(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
CallsNodeFinder.rootNode(Node)
and returns itself for method chaining.- Specified by:
rootNode
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(double minX, double minY, double width, double height)
Description copied from interface:FxRobotInterface
- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.geometry.Point2D point)
Description copied from interface:FxRobotInterface
- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterface
Creates aBoundsQuery
that returns the given bounds- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterface
CallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)
with given scene's bounds- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.stage.Window window)
Description copied from interface:FxRobotInterface
CallsBoundsQueryUtils.boundsOnScreen(Bounds, Window)
with the given window's bounds- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(String query)
Description copied from interface:FxRobotInterface
NOT YET IMPLEMENTED- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public <T extends javafx.scene.Node> BoundsQuery bounds(org.hamcrest.Matcher<T> matcher)
Description copied from interface:FxRobotInterface
NOT YET IMPLEMENTED- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
public <T extends javafx.scene.Node> BoundsQuery bounds(Predicate<T> predicate)
Description copied from interface:FxRobotInterface
NOT YET IMPLEMENTED- Specified by:
bounds
in interfaceFxRobotInterface
-
targetPos
public FxRobot targetPos(javafx.geometry.Pos pointPosition)
Description copied from interface:FxRobotInterface
Stores the given position as the position to be used in allpoint()
-related methods such asFxRobotInterface.point(Node)
andFxRobotInterface.point(Point2D)
, and returns itself for method chaining. The default value isPos.CENTER
- Specified by:
targetPos
in interfaceFxRobotInterface
-
point
public PointQuery point(double x, double y)
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Point2D)
usingnew Point2D(x, y)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
public PointQuery point(javafx.geometry.Point2D point)
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Point2D)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
public PointQuery point(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Bounds)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
public PointQuery point(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Node)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
public PointQuery point(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Scene)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
public PointQuery point(javafx.stage.Window window)
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Window)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
public PointQuery point(String query)
Description copied from interface:FxRobotInterface
Convenience method: Tries to find a given node viaFxRobotInterface.lookup(String)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.- Specified by:
point
in interfaceFxRobotInterface
-
point
public <T extends javafx.scene.Node> PointQuery point(org.hamcrest.Matcher<T> matcher)
Description copied from interface:FxRobotInterface
Convenience method: Tries to find a given node viaFxRobotInterface.lookup(Matcher)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.- Specified by:
point
in interfaceFxRobotInterface
-
point
public <T extends javafx.scene.Node> PointQuery point(Predicate<T> predicate)
Description copied from interface:FxRobotInterface
Convenience method: Tries to find a given node viaFxRobotInterface.lookup(Predicate)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.- Specified by:
point
in interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.geometry.Point2D point, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Point2D)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.geometry.Bounds bounds, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Bounds)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.scene.Node node, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Node)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Node)
and sets the query's offset by the given offset values where the offset is computed with respect to the given offset reference position.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.scene.Scene scene, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Scene)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.stage.Window window, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Window)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public PointQuery offset(String query, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(String)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public <T extends javafx.scene.Node> PointQuery offset(org.hamcrest.Matcher<T> matcher, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Matcher)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
offset
public <T extends javafx.scene.Node> PointQuery offset(Predicate<T> predicate, double offsetX, double offsetY)
Description copied from interface:FxRobotInterface
Convenience method: CallsFxRobotInterface.point(Predicate)
and sets the query's offset by the given offset values.- Specified by:
offset
in interfaceFxRobotInterface
-
capture
public Capture capture(javafx.geometry.Rectangle2D screenRegion)
Description copied from interface:FxRobotInterface
Returns aCapture
that supplies a screenshot using the given rectangle's bounds.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
public Capture capture(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterface
Returns aCapture
that supplies a screenshot using the given bounds.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
public Capture capture(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
Returns aCapture
that supplies a screenshot using the given node's bounds.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
public Capture capture(javafx.scene.image.Image image)
Description copied from interface:FxRobotInterface
Convenience method: Returns aCapture
that supplies the givenImage
.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
public Capture capture(Path path)
Description copied from interface:FxRobotInterface
Convenience method: Returns aCapture
that supplies theImage
from the image file of the givenPath
.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
public Capture capture(URL url)
Description copied from interface:FxRobotInterface
- Specified by:
capture
in interfaceFxRobotInterface
-
interact
public FxRobot interact(Runnable runnable)
Description copied from interface:FxRobotInterface
Calls a runnable on the FX application thread and waits for it and consecutive events to execute. So changes to the gui triggered by the runnable will be performed when returned from this method.- Specified by:
interact
in interfaceFxRobotInterface
- Parameters:
runnable
- the runnable- Returns:
- this robot
-
interact
public <T> FxRobot interact(Callable<T> callable)
Description copied from interface:FxRobotInterface
Calls a callable on the FX application thread and waits for it and consecutive events to execute. So changes to the gui triggered by the callable will be performed when returned from this method.- Specified by:
interact
in interfaceFxRobotInterface
- Parameters:
callable
- the callable- Returns:
- this robot
-
interactNoWait
public FxRobot interactNoWait(Runnable runnable)
Description copied from interface:FxRobotInterface
Calls a runnable on the FX application thread and waits for it to execute. It does not wait for other events on the fx application thread. So changes to the gui triggered by the runnable may not be performed when returned from this method.- Specified by:
interactNoWait
in interfaceFxRobotInterface
- Parameters:
runnable
- the runnable- Returns:
- this robot
-
interactNoWait
public <T> FxRobot interactNoWait(Callable<T> callable)
Description copied from interface:FxRobotInterface
Calls a callable on the FX application thread and waits for it to execute. It does not wait for other events on the fx application thread. So changes to the gui triggered by the callable may not be performed when returned from this method.- Specified by:
interactNoWait
in interfaceFxRobotInterface
- Parameters:
callable
- the callable- Returns:
- this robot
-
interrupt
public FxRobot interrupt()
Description copied from interface:FxRobotInterface
CallsWaitForAsyncUtils.waitForFxEvents()
and returns itself for method chaining.- Specified by:
interrupt
in interfaceFxRobotInterface
-
interrupt
public FxRobot interrupt(int attemptsCount)
Description copied from interface:FxRobotInterface
CallsWaitForAsyncUtils.waitForFxEvents(int)
and returns itself for method chaining.- Specified by:
interrupt
in interfaceFxRobotInterface
-
push
public FxRobot push(javafx.scene.input.KeyCode... combination)
Description copied from interface:FxRobotInterface
CallsTypeRobot.push(KeyCode...)
and returns itself for more method chaining.- Specified by:
push
in interfaceFxRobotInterface
-
push
public FxRobot push(javafx.scene.input.KeyCodeCombination combination)
Description copied from interface:FxRobotInterface
CallsTypeRobot.push(KeyCodeCombination)
and returns itself for more method chaining.- Specified by:
push
in interfaceFxRobotInterface
-
type
public FxRobot type(javafx.scene.input.KeyCode... keyCodes)
Description copied from interface:FxRobotInterface
CallsTypeRobot.type(KeyCode...)
and returns itself for more method chaining.- Specified by:
type
in interfaceFxRobotInterface
-
type
public FxRobot type(javafx.scene.input.KeyCode keyCode, int times)
Description copied from interface:FxRobotInterface
CallsTypeRobot.type(KeyCode, int)
and returns itself for more method chaining.- Specified by:
type
in interfaceFxRobotInterface
-
eraseText
public FxRobot eraseText(int amount)
Description copied from interface:FxRobotInterface
Convenience method: CallsTypeRobot.type(KeyCode, int)
withKeyCode.BACK_SPACE
and returns itself for more method chaining.- Specified by:
eraseText
in interfaceFxRobotInterface
-
closeCurrentWindow
@Deprecated public FxRobot closeCurrentWindow()
Deprecated.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms.
-
write
public FxRobot write(char character)
Description copied from interface:FxRobotInterface
CallsWriteRobot.write(char)
and returns itself for more method chaining.- Specified by:
write
in interfaceFxRobotInterface
-
write
public FxRobot write(String text)
Description copied from interface:FxRobotInterface
CallsWriteRobot.write(String)
and returns itself for more method chaining.- Specified by:
write
in interfaceFxRobotInterface
-
write
public FxRobot write(String text, int sleepMillis)
Description copied from interface:FxRobotInterface
CallsWriteRobot.write(String, int)
and returns itself for more method chaining.- Specified by:
write
in interfaceFxRobotInterface
-
sleep
public FxRobot sleep(long milliseconds)
Description copied from interface:FxRobotInterface
CallsSleepRobot.sleep(long)
and returns itself for more method chaining.- Specified by:
sleep
in interfaceFxRobotInterface
-
sleep
public FxRobot sleep(long duration, TimeUnit timeUnit)
Description copied from interface:FxRobotInterface
CallsSleepRobot.sleep(long, TimeUnit)
and returns itself for more method chaining.- Specified by:
sleep
in interfaceFxRobotInterface
-
scroll
@Deprecated public FxRobot scroll(int amount)
Deprecated.Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int)
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
public FxRobot scroll(int amount, javafx.geometry.VerticalDirection direction)
Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int, VerticalDirection)
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
public FxRobot scroll(javafx.geometry.VerticalDirection direction)
Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int, VerticalDirection)
with arguments1
anddirection
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
public FxRobot scroll(int amount, javafx.geometry.HorizontalDirection direction)
Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int, HorizontalDirection)
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
public FxRobot scroll(javafx.geometry.HorizontalDirection direction)
Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int, VerticalDirection)
with arguments1
anddirection
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
press
public FxRobot press(javafx.scene.input.KeyCode... keys)
Description copied from interface:FxRobotInterface
CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.- Specified by:
press
in interfaceFxRobotInterface
-
release
public FxRobot release(javafx.scene.input.KeyCode... keys)
Description copied from interface:FxRobotInterface
CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.- Specified by:
release
in interfaceFxRobotInterface
-
press
public FxRobot press(javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Presses and holds mouse buttons.- Specified by:
press
in interfaceFxRobotInterface
- Parameters:
buttons
- mouse buttons to press, defaults to primary mouse button.
-
release
public FxRobot release(javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Releases pressed mouse buttons.- Specified by:
release
in interfaceFxRobotInterface
- Parameters:
buttons
- mouse buttons to release, defaults to all pressed mouse buttons.
-
clickOn
public FxRobot clickOn(javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
CallsClickRobot.clickOn(MouseButton...)
and returns itself for more method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
CallsClickRobot.clickOn(PointQuery, MouseButton...)
and returns itself for more method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
CallsClickRobot.doubleClickOn(MouseButton...)
and returns itself for more method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
CallsClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...)
and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given coordinates, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given point, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public <T extends javafx.scene.Node> FxRobot clickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
clickOn
public <T extends javafx.scene.Node> FxRobot clickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn()
Description copied from interface:FxRobotInterface
Convenience method: Clicks theMouseButton.SECONDARY
button and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(PointQuery pointQuery, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromPointQuery.query()
, clicks theMouseButton.SECONDARY
button and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(double x, double y, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given coordinates, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(javafx.geometry.Point2D point, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(javafx.geometry.Bounds bounds, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(javafx.scene.Node node, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(javafx.scene.Scene scene, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(javafx.stage.Window window, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(String query, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public <T extends javafx.scene.Node> FxRobot rightClickOn(org.hamcrest.Matcher<T> matcher, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
public <T extends javafx.scene.Node> FxRobot rightClickOn(Predicate<T> predicate, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
, clicks theMouseButton.SECONDARY
button, and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(double, double)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public <T extends javafx.scene.Node> FxRobot doubleClickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
doubleClickOn
public <T extends javafx.scene.Node> FxRobot doubleClickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
, double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOn
in interfaceFxRobotInterface
-
drag
public FxRobot drag(javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
CallsDragRobot.drag(MouseButton...)
and returns itself for more method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
CallsDragRobot.drag(PointQuery, MouseButton...)
and returns itself for more method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drop
public FxRobot drop()
Description copied from interface:FxRobotInterface
CallsDragRobot.drop()
and returns itself for more method chaining.- Specified by:
drop
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(PointQuery pointQuery)
Description copied from interface:FxRobotInterface
CallsDragRobot.dropTo(PointQuery)
and returns itself for more method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropBy
public FxRobot dropBy(double x, double y)
Description copied from interface:FxRobotInterface
CallsDragRobot.dropBy(double, double)
and returns itself for more method chaining.- Specified by:
dropBy
in interfaceFxRobotInterface
-
drag
public FxRobot drag(double x, double y, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(double, double)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Point2D)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Bounds)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Node)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Scene)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Window)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public FxRobot drag(String query, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(String)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public <T extends javafx.scene.Node> FxRobot drag(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Matcher)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
public <T extends javafx.scene.Node> FxRobot drag(Predicate<T> predicate, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate)
, presses the given buttons, and returns itself for method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(double x, double y)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(double, double)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(javafx.geometry.Point2D point)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Point2D)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Bounds)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(javafx.scene.Node node)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Node)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Scene)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(javafx.stage.Window window)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Window)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(String query)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(String)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public <T extends javafx.scene.Node> FxRobot dropTo(org.hamcrest.Matcher<T> matcher)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Matcher)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropTo
public <T extends javafx.scene.Node> FxRobot dropTo(Predicate<T> predicate)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate)
, releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)
- orFxRobotInterface.press(MouseButton...)
-related methods, and returns itself for method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(PointQuery pointQuery, Motion motion)
Description copied from interface:FxRobotInterface
CallsMoveRobot.moveTo(PointQuery, Motion)
and returns itself for more method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveBy
public FxRobot moveBy(double x, double y, Motion motion)
Description copied from interface:FxRobotInterface
CallsMoveRobot.moveBy(double, double, Motion)
and returns itself for more method chaining.- Specified by:
moveBy
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(double x, double y, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(double, double)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(javafx.geometry.Point2D point, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(javafx.geometry.Bounds bounds, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, javafx.geometry.Point2D offset, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Node)
, with the given offset (from theoffsetReferencePos
, and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(javafx.scene.Scene scene, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(javafx.stage.Window window, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Window)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(String query, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(String)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public <T extends javafx.scene.Node> FxRobot moveTo(org.hamcrest.Matcher<T> matcher, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveTo
public <T extends javafx.scene.Node> FxRobot moveTo(Predicate<T> predicate, Motion motion)
Description copied from interface:FxRobotInterface
Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
and returns itself for method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
-