Package org.testfx.api
Class FxRobot
java.lang.Object
org.testfx.api.FxRobot
- All Implemented Interfaces:
FxRobotInterface
- Direct Known Subclasses:
ApplicationExtension
,ApplicationRule
,ApplicationTest
,ApplicationTest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFxRobot()
Constructs all robot-related implementations and setstargetPos(Pos)
toPos.CENTER
. -
Method Summary
Modifier and TypeMethodDescriptionbounds
(double minX, double minY, double width, double height) NOT YET IMPLEMENTED<T extends javafx.scene.Node>
BoundsQueryNOT YET IMPLEMENTEDbounds
(javafx.geometry.Bounds bounds) Creates aBoundsQuery
that returns the given boundsbounds
(javafx.geometry.Point2D point) bounds
(javafx.scene.Node node) bounds
(javafx.scene.Scene scene) CallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)
with given scene's boundsbounds
(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
(javafx.geometry.Bounds bounds) Returns aCapture
that supplies a screenshot using the given bounds.capture
(javafx.geometry.Rectangle2D screenRegion) Returns aCapture
that supplies a screenshot using the given rectangle's bounds.capture
(javafx.scene.image.Image image) Convenience method: Returns aCapture
that supplies the givenImage
.capture
(javafx.scene.Node node) Returns aCapture
that supplies a screenshot using the given node's bounds.Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given coordinates, clicks the given buttons, and returns itself for method chaining.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>
FxRobotConvenience 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.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.Convenience method: Moves mouse using the givenmotion
(see:Motion
to the given point, clicks the given buttons, and returns itself for method chaining.clickOn
(javafx.scene.input.MouseButton... buttons) CallsClickRobot.clickOn(MouseButton...)
and returns itself for more method chaining.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.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.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>
FxRobotConvenience 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.clickOn
(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) CallsClickRobot.clickOn(PointQuery, MouseButton...)
and returns itself for more method chaining.Deprecated.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms.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.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.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.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.doubleClickOn
(javafx.scene.input.MouseButton... buttons) CallsClickRobot.doubleClickOn(MouseButton...)
and returns itself for more method chaining.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.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.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.doubleClickOn
(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) CallsClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...)
and returns itself for method chaining.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.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>
FxRobotConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate)
, presses the given buttons, and returns itself for method chaining.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.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.drag
(javafx.scene.input.MouseButton... buttons) CallsDragRobot.drag(MouseButton...)
and returns itself for more method chaining.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.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.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.drag
(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons) CallsDragRobot.drag(PointQuery, MouseButton...)
and returns itself for more method chaining.drop()
CallsDragRobot.drop()
and returns itself for more method chaining.dropBy
(double x, double y) CallsDragRobot.dropBy(double, double)
and returns itself for more method chaining.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.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>
FxRobotConvenience 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.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.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.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.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.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.dropTo
(PointQuery pointQuery) CallsDragRobot.dropTo(PointQuery)
and returns itself for more method chaining.eraseText
(int amount) Convenience method: CallsTypeRobot.type(KeyCode, int)
withKeyCode.BACK_SPACE
and returns itself for more method chaining.from
(Collection<javafx.scene.Node> parentNodes) CallsNodeFinder.from(Collection)
and returns itself for method chaining.from
(javafx.scene.Node... parentNodes) CallsNodeFinder.from(Node...)
and returns itself for method chaining.Convenience method: CallsNodeFinder.from(NodeQuery)
and returns itself for method chaining.fromAll()
CallsNodeFinder.fromAll()
and returns itself for method chaining.Calls a runnable on the FX application thread and waits for it and consecutive events to execute.<T> FxRobot
Calls a callable on the FX application thread and waits for it and consecutive events to execute.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.CallsWaitForAsyncUtils.waitForFxEvents()
and returns itself for method chaining.interrupt
(int attemptsCount) CallsWaitForAsyncUtils.waitForFxEvents(int)
and returns itself for method chaining.List
<javafx.stage.Window> CallsWindowFinder.listTargetWindows()
and returns itself for method chaining.List
<javafx.stage.Window> CallsWindowFinder.listWindows()
()} and returns itself for method chaining.Convenience method: CallsNodeFinder.lookup(String)
and returns itself for method chaining.<T extends javafx.scene.Node>
NodeQueryConvenience 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.CallsMoveRobot.moveBy(double, double, Motion)
and returns itself for more method chaining.Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(double, double)
and returns itself for method chaining.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>
FxRobotConvenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Predicate)
and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Bounds)
and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Point2D)
and returns itself for method chaining.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.Convenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Scene)
and returns itself for method chaining.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>
FxRobotConvenience method: Moves mouse using the givenmotion
(see:Motion
to the point returned fromFxRobotInterface.point(Matcher)
and returns itself for method chaining.moveTo
(PointQuery pointQuery, Motion motion) CallsMoveRobot.moveTo(PointQuery, Motion)
and returns itself for more method chaining.Convenience method: CallsFxRobotInterface.point(String)
and sets the query's offset by the given offset values.<T extends javafx.scene.Node>
PointQueryConvenience method: CallsFxRobotInterface.point(Predicate)
and sets the query's offset by the given offset values.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.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.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.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.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.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.point
(double x, double y) CallsPointLocator.point(Point2D)
usingnew Point2D(x, y)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.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>
PointQueryConvenience method: Tries to find a given node viaFxRobotInterface.lookup(Predicate)
before callingFxRobotInterface.point(Node)
, throwing aFxRobotException
if no node is found.point
(javafx.geometry.Bounds bounds) CallsPointLocator.point(Bounds)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.point
(javafx.geometry.Point2D point) CallsPointLocator.point(Point2D)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.point
(javafx.scene.Node node) CallsPointLocator.point(Node)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.point
(javafx.scene.Scene scene) CallsPointLocator.point(Scene)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.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.private PointQuery
pointOfVisibleNode
(String query) private <T extends javafx.scene.Node>
PointQuerypointOfVisibleNode
(Predicate<T> predicate) private <T extends javafx.scene.Node>
PointQuerypointOfVisibleNode
(org.hamcrest.Matcher<T> matcher) press
(javafx.scene.input.KeyCode... keys) CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.press
(javafx.scene.input.MouseButton... buttons) Presses and holds mouse buttons.push
(javafx.scene.input.KeyCode... combination) CallsTypeRobot.push(KeyCode...)
and returns itself for more method chaining.push
(javafx.scene.input.KeyCodeCombination combination) CallsTypeRobot.push(KeyCodeCombination)
and returns itself for more method chaining.private javafx.scene.Node
private javafx.scene.Node
queryVisibleNode
(NodeQuery nodeQuery, String queryDescription) release
(javafx.scene.input.KeyCode... keys) CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.release
(javafx.scene.input.MouseButton... buttons) Releases pressed mouse buttons.Convenience method: Clicks theMouseButton.SECONDARY
button and returns itself for method chaining.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.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.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.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.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.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.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.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.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.scroll
(int amount) Deprecated.scroll
(int amount, javafx.geometry.HorizontalDirection direction) CallsScrollRobot.scroll(int, HorizontalDirection)
and returns itself for more method chaining.scroll
(int amount, javafx.geometry.VerticalDirection direction) CallsScrollRobot.scroll(int, VerticalDirection)
and returns itself for more method chaining.scroll
(javafx.geometry.HorizontalDirection direction) CallsScrollRobot.scroll(int, VerticalDirection)
with arguments1
anddirection
and returns itself for more method chaining.scroll
(javafx.geometry.VerticalDirection direction) CallsScrollRobot.scroll(int, VerticalDirection)
with arguments1
anddirection
and returns itself for more method chaining.sleep
(long milliseconds) CallsSleepRobot.sleep(long)
and returns itself for more method chaining.CallsSleepRobot.sleep(long, TimeUnit)
and returns itself for more method chaining.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
CallsWindowFinder.targetWindow()
and returns itself for method chaining.targetWindow
(int windowNumber) Convenience method: CallsWindowFinder.targetWindow(int)
and returns itself for method chaining.targetWindow
(String stageTitleRegex) Convenience method: CallsWindowFinder.targetWindow(String)
and returns itself for method chaining.targetWindow
(Predicate<javafx.stage.Window> predicate) CallsWindowFinder.targetWindow(Predicate)
and returns itself for method chaining.targetWindow
(Pattern stageTitlePattern) Convenience method: CallsWindowFinder.targetWindow(Pattern)
and returns itself for method chaining.targetWindow
(javafx.scene.Node node) Convenience method: CallsWindowFinder.targetWindow(Node)
and returns itself for method chaining.targetWindow
(javafx.scene.Scene scene) Convenience method: CallsWindowFinder.targetWindow(Scene)
and returns itself for method chaining.targetWindow
(javafx.stage.Window window) CallsWindowFinder.targetWindow(Window)
and returns itself for method chaining.type
(javafx.scene.input.KeyCode... keyCodes) CallsTypeRobot.type(KeyCode...)
and returns itself for more method chaining.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
Convenience method: CallsWindowFinder.window(String)
and returns itself for method chaining.javafx.stage.Window
CallsWindowFinder.window(Predicate)
and returns itself for method chaining.javafx.stage.Window
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.write
(char character) CallsWriteRobot.write(char)
and returns itself for more method chaining.CallsWriteRobot.write(String)
and returns itself for more method chaining.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
-
Field Details
-
context
-
-
Constructor Details
-
FxRobot
public FxRobot()Constructs all robot-related implementations and setstargetPos(Pos)
toPos.CENTER
.
-
-
Method Details
-
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
Description copied from interface:FxRobotInterface
CallsWindowFinder.targetWindow(Window)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterface
CallsWindowFinder.targetWindow(Predicate)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(int)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(String)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(Pattern)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(Scene)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.targetWindow(Node)
and returns itself for method chaining.- Specified by:
targetWindow
in interfaceFxRobotInterface
-
listWindows
Description copied from interface:FxRobotInterface
CallsWindowFinder.listWindows()
()} and returns itself for method chaining.- Specified by:
listWindows
in interfaceFxRobotInterface
-
listTargetWindows
Description copied from interface:FxRobotInterface
CallsWindowFinder.listTargetWindows()
and returns itself for method chaining.- Specified by:
listTargetWindows
in interfaceFxRobotInterface
-
window
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
Description copied from interface:FxRobotInterface
Convenience method: CallsWindowFinder.window(String)
and returns itself for method chaining.- Specified by:
window
in interfaceFxRobotInterface
-
window
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
Description copied from interface:FxRobotInterface
CallsNodeFinder.fromAll()
and returns itself for method chaining.- Specified by:
fromAll
in interfaceFxRobotInterface
-
from
Description copied from interface:FxRobotInterface
CallsNodeFinder.from(Node...)
and returns itself for method chaining.- Specified by:
from
in interfaceFxRobotInterface
-
from
Description copied from interface:FxRobotInterface
CallsNodeFinder.from(Collection)
and returns itself for method chaining.- Specified by:
from
in interfaceFxRobotInterface
-
from
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.from(NodeQuery)
and returns itself for method chaining.- Specified by:
from
in interfaceFxRobotInterface
-
lookup
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.lookup(String)
and returns itself for method chaining.- Specified by:
lookup
in interfaceFxRobotInterface
-
lookup
Description copied from interface:FxRobotInterface
Convenience method: CallsNodeFinder.lookup(Matcher)
and returns itself for method chaining.- Specified by:
lookup
in interfaceFxRobotInterface
-
lookup
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
Description copied from interface:FxRobotInterface
- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
Creates aBoundsQuery
that returns the given bounds- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
CallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)
with given scene's bounds- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
CallsBoundsQueryUtils.boundsOnScreen(Bounds, Window)
with the given window's bounds- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
NOT YET IMPLEMENTED- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
NOT YET IMPLEMENTED- Specified by:
bounds
in interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface
NOT YET IMPLEMENTED- Specified by:
bounds
in interfaceFxRobotInterface
-
targetPos
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
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
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Point2D)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Bounds)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Node)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Scene)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterface
CallsPointLocator.point(Window)
and sets thePointQuery
'sPointQuery.getPosition()
toFxRobotContext.getPointPosition()
.- Specified by:
point
in interfaceFxRobotInterface
-
point
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
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
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
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
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
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
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
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
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
Description copied from interface:FxRobotInterface
Returns aCapture
that supplies a screenshot using the given rectangle's bounds.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterface
Returns aCapture
that supplies a screenshot using the given bounds.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterface
Returns aCapture
that supplies a screenshot using the given node's bounds.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterface
Convenience method: Returns aCapture
that supplies the givenImage
.- Specified by:
capture
in interfaceFxRobotInterface
-
capture
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
Description copied from interface:FxRobotInterface
- Specified by:
capture
in interfaceFxRobotInterface
-
interact
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
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
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
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
Description copied from interface:FxRobotInterface
CallsWaitForAsyncUtils.waitForFxEvents()
and returns itself for method chaining.- Specified by:
interrupt
in interfaceFxRobotInterface
-
interrupt
Description copied from interface:FxRobotInterface
CallsWaitForAsyncUtils.waitForFxEvents(int)
and returns itself for method chaining.- Specified by:
interrupt
in interfaceFxRobotInterface
-
push
Description copied from interface:FxRobotInterface
CallsTypeRobot.push(KeyCode...)
and returns itself for more method chaining.- Specified by:
push
in interfaceFxRobotInterface
-
push
Description copied from interface:FxRobotInterface
CallsTypeRobot.push(KeyCodeCombination)
and returns itself for more method chaining.- Specified by:
push
in interfaceFxRobotInterface
-
type
Description copied from interface:FxRobotInterface
CallsTypeRobot.type(KeyCode...)
and returns itself for more method chaining.- Specified by:
type
in interfaceFxRobotInterface
-
type
Description copied from interface:FxRobotInterface
CallsTypeRobot.type(KeyCode, int)
and returns itself for more method chaining.- Specified by:
type
in interfaceFxRobotInterface
-
eraseText
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.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms. -
write
Description copied from interface:FxRobotInterface
CallsWriteRobot.write(char)
and returns itself for more method chaining.- Specified by:
write
in interfaceFxRobotInterface
-
write
Description copied from interface:FxRobotInterface
CallsWriteRobot.write(String)
and returns itself for more method chaining.- Specified by:
write
in interfaceFxRobotInterface
-
write
Description copied from interface:FxRobotInterface
CallsWriteRobot.write(String, int)
and returns itself for more method chaining.- Specified by:
write
in interfaceFxRobotInterface
-
sleep
Description copied from interface:FxRobotInterface
CallsSleepRobot.sleep(long)
and returns itself for more method chaining.- Specified by:
sleep
in interfaceFxRobotInterface
-
sleep
Description copied from interface:FxRobotInterface
CallsSleepRobot.sleep(long, TimeUnit)
and returns itself for more method chaining.- Specified by:
sleep
in interfaceFxRobotInterface
-
scroll
Deprecated.Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int)
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int, VerticalDirection)
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
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
Description copied from interface:FxRobotInterface
CallsScrollRobot.scroll(int, HorizontalDirection)
and returns itself for more method chaining.- Specified by:
scroll
in interfaceFxRobotInterface
-
scroll
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
Description copied from interface:FxRobotInterface
CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.- Specified by:
press
in interfaceFxRobotInterface
-
release
Description copied from interface:FxRobotInterface
CallsKeyboardRobot.press(KeyCode...)
and returns itself for method chaining.- Specified by:
release
in interfaceFxRobotInterface
-
press
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
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
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
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
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
Description copied from interface:FxRobotInterface
Convenience method: Clicks theMouseButton.SECONDARY
button and returns itself for method chaining.- Specified by:
rightClickOn
in interfaceFxRobotInterface
-
rightClickOn
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
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
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
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
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
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
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
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
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
Description copied from interface:FxRobotInterface
CallsDragRobot.drag(MouseButton...)
and returns itself for more method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterface
CallsDragRobot.drag(PointQuery, MouseButton...)
and returns itself for more method chaining.- Specified by:
drag
in interfaceFxRobotInterface
-
drop
Description copied from interface:FxRobotInterface
CallsDragRobot.drop()
and returns itself for more method chaining.- Specified by:
drop
in interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterface
CallsDragRobot.dropTo(PointQuery)
and returns itself for more method chaining.- Specified by:
dropTo
in interfaceFxRobotInterface
-
dropBy
Description copied from interface:FxRobotInterface
CallsDragRobot.dropBy(double, double)
and returns itself for more method chaining.- Specified by:
dropBy
in interfaceFxRobotInterface
-
drag
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Description copied from interface:FxRobotInterface
CallsMoveRobot.moveTo(PointQuery, Motion)
and returns itself for more method chaining.- Specified by:
moveTo
in interfaceFxRobotInterface
-
moveBy
Description copied from interface:FxRobotInterface
CallsMoveRobot.moveBy(double, double, Motion)
and returns itself for more method chaining.- Specified by:
moveBy
in interfaceFxRobotInterface
-
moveTo
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
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
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
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
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
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
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
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
-
pointOfVisibleNode
-
pointOfVisibleNode
private <T extends javafx.scene.Node> PointQuery pointOfVisibleNode(org.hamcrest.Matcher<T> matcher) -
pointOfVisibleNode
-
queryNode
-
queryVisibleNode
-