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 aBoundsQuerythat 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 aCapturethat supplies a screenshot using the given bounds.capture(javafx.geometry.Rectangle2D screenRegion) Returns aCapturethat supplies a screenshot using the given rectangle's bounds.capture(javafx.scene.image.Image image) Convenience method: Returns aCapturethat supplies the givenImage.capture(javafx.scene.Node node) Returns aCapturethat supplies a screenshot using the given node's bounds.Convenience method: Moves mouse using the givenmotion(see:Motionto the given coordinates, clicks the given buttons, and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto 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:Motionto the point returned fromFxRobotInterface.point(Predicate), clicks the given buttons, and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds), clicks the given buttons, and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto 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:Motionto the point returned fromFxRobotInterface.point(Node), clicks the given buttons, and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene), clicks the given buttons, and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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:Motionto 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_SPACEand 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> FxRobotCalls 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> FxRobotinteractNoWait(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:Motionto the point returned fromFxRobotInterface.point(double, double)and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto 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:Motionto the point returned fromFxRobotInterface.point(Predicate)and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds)and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto 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:Motionto 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:Motionto the point returned fromFxRobotInterface.point(Scene)and returns itself for method chaining.Convenience method: Moves mouse using the givenmotion(see:Motionto 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:Motionto 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 aFxRobotExceptionif 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 aFxRobotExceptionif 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 aFxRobotExceptionif no node is found.private PointQuerypointOfVisibleNode(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.Nodeprivate javafx.scene.NodequeryVisibleNode(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.SECONDARYbutton and returns itself for method chaining.rightClickOn(double x, double y, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the given coordinates, clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(String query, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(String), clicks theMouseButton.SECONDARYbutton, 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:Motionto the point returned fromFxRobotInterface.point(Predicate), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(javafx.geometry.Bounds bounds, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(javafx.geometry.Point2D point, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Point2D), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(javafx.scene.Node node, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Node), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(javafx.scene.Scene scene, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(javafx.stage.Window window, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Window), clicks theMouseButton.SECONDARYbutton, 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:Motionto the point returned fromFxRobotInterface.point(Matcher), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.rightClickOn(PointQuery pointQuery, Motion motion) Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromPointQuery.query(), clicks theMouseButton.SECONDARYbutton and returns itself for method chaining.Returns the internal context.javafx.scene.NoderootNode(javafx.scene.Node node) CallsNodeFinder.rootNode(Node)and returns itself for method chaining.javafx.scene.NoderootNode(javafx.scene.Scene scene) CallsNodeFinder.rootNode(Scene)and returns itself for method chaining.javafx.scene.NoderootNode(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 arguments1anddirectionand returns itself for more method chaining.scroll(javafx.geometry.VerticalDirection direction) CallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand 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.WindowCallsWindowFinder.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.Windowwindow(int windowIndex) Convenience method: CallsWindowFinder.window(int)and returns itself for method chaining.javafx.stage.WindowConvenience method: CallsWindowFinder.window(String)and returns itself for method chaining.javafx.stage.WindowCallsWindowFinder.window(Predicate)and returns itself for method chaining.javafx.stage.WindowConvenience method: CallsWindowFinder.window(Pattern)and returns itself for method chaining.javafx.stage.Windowwindow(javafx.scene.Node node) Convenience method: CallsWindowFinder.window(Node)and returns itself for method chaining.javafx.stage.Windowwindow(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, waitMethods 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:FxRobotInterfaceCallsWindowFinder.targetWindow()and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceCallsWindowFinder.targetWindow(Window)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceCallsWindowFinder.targetWindow(Predicate)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(int)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(String)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(Pattern)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(Scene)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(Node)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
listWindows
Description copied from interface:FxRobotInterfaceCallsWindowFinder.listWindows()()} and returns itself for method chaining.- Specified by:
listWindowsin interfaceFxRobotInterface
-
listTargetWindows
Description copied from interface:FxRobotInterfaceCallsWindowFinder.listTargetWindows()and returns itself for method chaining.- Specified by:
listTargetWindowsin interfaceFxRobotInterface
-
window
Description copied from interface:FxRobotInterfaceCallsWindowFinder.window(Predicate)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
window
public javafx.stage.Window window(int windowIndex) Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.window(int)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
window
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.window(String)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
window
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.window(Pattern)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
window
public javafx.stage.Window window(javafx.scene.Scene scene) Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.window(Scene)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
window
public javafx.stage.Window window(javafx.scene.Node node) Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.window(Node)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
fromAll
Description copied from interface:FxRobotInterfaceCallsNodeFinder.fromAll()and returns itself for method chaining.- Specified by:
fromAllin interfaceFxRobotInterface
-
from
Description copied from interface:FxRobotInterfaceCallsNodeFinder.from(Node...)and returns itself for method chaining.- Specified by:
fromin interfaceFxRobotInterface
-
from
Description copied from interface:FxRobotInterfaceCallsNodeFinder.from(Collection)and returns itself for method chaining.- Specified by:
fromin interfaceFxRobotInterface
-
from
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.from(NodeQuery)and returns itself for method chaining.- Specified by:
fromin interfaceFxRobotInterface
-
lookup
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.lookup(String)and returns itself for method chaining.- Specified by:
lookupin interfaceFxRobotInterface
-
lookup
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.lookup(Matcher)and returns itself for method chaining.- Specified by:
lookupin interfaceFxRobotInterface
-
lookup
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.lookup(Predicate)and returns itself for method chaining.- Specified by:
lookupin interfaceFxRobotInterface
-
rootNode
public javafx.scene.Node rootNode(javafx.stage.Window window) Description copied from interface:FxRobotInterfaceCallsNodeFinder.rootNode(Window)and returns itself for method chaining.- Specified by:
rootNodein interfaceFxRobotInterface
-
rootNode
public javafx.scene.Node rootNode(javafx.scene.Scene scene) Description copied from interface:FxRobotInterfaceCallsNodeFinder.rootNode(Scene)and returns itself for method chaining.- Specified by:
rootNodein interfaceFxRobotInterface
-
rootNode
public javafx.scene.Node rootNode(javafx.scene.Node node) Description copied from interface:FxRobotInterfaceCallsNodeFinder.rootNode(Node)and returns itself for method chaining.- Specified by:
rootNodein interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterfaceCreates aBoundsQuerythat returns the given bounds- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterface- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterfaceCallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)with given scene's bounds- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterfaceCallsBoundsQueryUtils.boundsOnScreen(Bounds, Window)with the given window's bounds- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterfaceNOT YET IMPLEMENTED- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterfaceNOT YET IMPLEMENTED- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
Description copied from interface:FxRobotInterfaceNOT YET IMPLEMENTED- Specified by:
boundsin interfaceFxRobotInterface
-
targetPos
Description copied from interface:FxRobotInterfaceStores 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:
targetPosin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Point2D)usingnew Point2D(x, y)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Point2D)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Bounds)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Node)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Scene)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Window)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceConvenience method: Tries to find a given node viaFxRobotInterface.lookup(String)before callingFxRobotInterface.point(Node), throwing aFxRobotExceptionif no node is found.- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceConvenience method: Tries to find a given node viaFxRobotInterface.lookup(Matcher)before callingFxRobotInterface.point(Node), throwing aFxRobotExceptionif no node is found.- Specified by:
pointin interfaceFxRobotInterface
-
point
Description copied from interface:FxRobotInterfaceConvenience method: Tries to find a given node viaFxRobotInterface.lookup(Predicate)before callingFxRobotInterface.point(Node), throwing aFxRobotExceptionif no node is found.- Specified by:
pointin interfaceFxRobotInterface
-
offset
Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Point2D)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Bounds)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Node)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
public PointQuery offset(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, double offsetX, double offsetY) Description copied from interface:FxRobotInterfaceConvenience 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:
offsetin interfaceFxRobotInterface
-
offset
Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Scene)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Window)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(String)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
public <T extends javafx.scene.Node> PointQuery offset(org.hamcrest.Matcher<T> matcher, double offsetX, double offsetY) Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Matcher)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
offset
public <T extends javafx.scene.Node> PointQuery offset(Predicate<T> predicate, double offsetX, double offsetY) Description copied from interface:FxRobotInterfaceConvenience method: CallsFxRobotInterface.point(Predicate)and sets the query's offset by the given offset values.- Specified by:
offsetin interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterfaceReturns aCapturethat supplies a screenshot using the given rectangle's bounds.- Specified by:
capturein interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterfaceReturns aCapturethat supplies a screenshot using the given bounds.- Specified by:
capturein interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterfaceReturns aCapturethat supplies a screenshot using the given node's bounds.- Specified by:
capturein interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterfaceConvenience method: Returns aCapturethat supplies the givenImage.- Specified by:
capturein interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterfaceConvenience method: Returns aCapturethat supplies theImagefrom the image file of the givenPath.- Specified by:
capturein interfaceFxRobotInterface
-
capture
Description copied from interface:FxRobotInterface- Specified by:
capturein interfaceFxRobotInterface
-
interact
Description copied from interface:FxRobotInterfaceCalls 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:
interactin interfaceFxRobotInterface- Parameters:
runnable- the runnable- Returns:
- this robot
-
interact
Description copied from interface:FxRobotInterfaceCalls 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:
interactin interfaceFxRobotInterface- Parameters:
callable- the callable- Returns:
- this robot
-
interactNoWait
Description copied from interface:FxRobotInterfaceCalls 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:
interactNoWaitin interfaceFxRobotInterface- Parameters:
runnable- the runnable- Returns:
- this robot
-
interactNoWait
Description copied from interface:FxRobotInterfaceCalls 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:
interactNoWaitin interfaceFxRobotInterface- Parameters:
callable- the callable- Returns:
- this robot
-
interrupt
Description copied from interface:FxRobotInterfaceCallsWaitForAsyncUtils.waitForFxEvents()and returns itself for method chaining.- Specified by:
interruptin interfaceFxRobotInterface
-
interrupt
Description copied from interface:FxRobotInterfaceCallsWaitForAsyncUtils.waitForFxEvents(int)and returns itself for method chaining.- Specified by:
interruptin interfaceFxRobotInterface
-
push
Description copied from interface:FxRobotInterfaceCallsTypeRobot.push(KeyCode...)and returns itself for more method chaining.- Specified by:
pushin interfaceFxRobotInterface
-
push
Description copied from interface:FxRobotInterfaceCallsTypeRobot.push(KeyCodeCombination)and returns itself for more method chaining.- Specified by:
pushin interfaceFxRobotInterface
-
type
Description copied from interface:FxRobotInterfaceCallsTypeRobot.type(KeyCode...)and returns itself for more method chaining.- Specified by:
typein interfaceFxRobotInterface
-
type
Description copied from interface:FxRobotInterfaceCallsTypeRobot.type(KeyCode, int)and returns itself for more method chaining.- Specified by:
typein interfaceFxRobotInterface
-
eraseText
Description copied from interface:FxRobotInterfaceConvenience method: CallsTypeRobot.type(KeyCode, int)withKeyCode.BACK_SPACEand returns itself for more method chaining.- Specified by:
eraseTextin 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:FxRobotInterfaceCallsWriteRobot.write(char)and returns itself for more method chaining.- Specified by:
writein interfaceFxRobotInterface
-
write
Description copied from interface:FxRobotInterfaceCallsWriteRobot.write(String)and returns itself for more method chaining.- Specified by:
writein interfaceFxRobotInterface
-
write
Description copied from interface:FxRobotInterfaceCallsWriteRobot.write(String, int)and returns itself for more method chaining.- Specified by:
writein interfaceFxRobotInterface
-
sleep
Description copied from interface:FxRobotInterfaceCallsSleepRobot.sleep(long)and returns itself for more method chaining.- Specified by:
sleepin interfaceFxRobotInterface
-
sleep
Description copied from interface:FxRobotInterfaceCallsSleepRobot.sleep(long, TimeUnit)and returns itself for more method chaining.- Specified by:
sleepin interfaceFxRobotInterface
-
scroll
Deprecated.Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int)and returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, VerticalDirection)and returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, HorizontalDirection)and returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
press
Description copied from interface:FxRobotInterfaceCallsKeyboardRobot.press(KeyCode...)and returns itself for method chaining.- Specified by:
pressin interfaceFxRobotInterface
-
release
Description copied from interface:FxRobotInterfaceCallsKeyboardRobot.press(KeyCode...)and returns itself for method chaining.- Specified by:
releasein interfaceFxRobotInterface
-
press
Description copied from interface:FxRobotInterfacePresses and holds mouse buttons.- Specified by:
pressin interfaceFxRobotInterface- Parameters:
buttons- mouse buttons to press, defaults to primary mouse button.
-
release
Description copied from interface:FxRobotInterfaceReleases pressed mouse buttons.- Specified by:
releasein interfaceFxRobotInterface- Parameters:
buttons- mouse buttons to release, defaults to all pressed mouse buttons.
-
clickOn
Description copied from interface:FxRobotInterfaceCallsClickRobot.clickOn(MouseButton...)and returns itself for more method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceCallsClickRobot.clickOn(PointQuery, MouseButton...)and returns itself for more method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
doubleClickOn
Description copied from interface:FxRobotInterfaceCallsClickRobot.doubleClickOn(MouseButton...)and returns itself for more method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceCallsClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...)and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the given coordinates, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the given point, clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Node), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public FxRobot clickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Window), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(String), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin 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:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Matcher), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
clickOn
public <T extends javafx.scene.Node> FxRobot clickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Predicate), clicks the given buttons, and returns itself for method chaining.- Specified by:
clickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Clicks theMouseButton.SECONDARYbutton and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromPointQuery.query(), clicks theMouseButton.SECONDARYbutton and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the given coordinates, clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Point2D), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Node), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Window), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(String), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
public <T extends javafx.scene.Node> FxRobot rightClickOn(org.hamcrest.Matcher<T> matcher, Motion motion) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Matcher), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Predicate), clicks theMouseButton.SECONDARYbutton, and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(double, double), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Point2D), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Node), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Window), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public FxRobot doubleClickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(String), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin 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:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Matcher), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
doubleClickOn
public <T extends javafx.scene.Node> FxRobot doubleClickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Predicate), double clicks the given buttons, and returns itself for method chaining.- Specified by:
doubleClickOnin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceCallsDragRobot.drag(MouseButton...)and returns itself for more method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceCallsDragRobot.drag(PointQuery, MouseButton...)and returns itself for more method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drop
Description copied from interface:FxRobotInterfaceCallsDragRobot.drop()and returns itself for more method chaining.- Specified by:
dropin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceCallsDragRobot.dropTo(PointQuery)and returns itself for more method chaining.- Specified by:
dropToin interfaceFxRobotInterface
-
dropBy
Description copied from interface:FxRobotInterfaceCallsDragRobot.dropBy(double, double)and returns itself for more method chaining.- Specified by:
dropByin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(double, double), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Point2D), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Bounds), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Node), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Scene), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Window), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(String), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
public <T extends javafx.scene.Node> FxRobot drag(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Matcher), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
public <T extends javafx.scene.Node> FxRobot drag(Predicate<T> predicate, javafx.scene.input.MouseButton... buttons) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate), presses the given buttons, and returns itself for method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
dropTo
Description copied from interface:FxRobotInterfaceConvenience 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:
dropToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceCallsMoveRobot.moveTo(PointQuery, Motion)and returns itself for more method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveBy
Description copied from interface:FxRobotInterfaceCallsMoveRobot.moveBy(double, double, Motion)and returns itself for more method chaining.- Specified by:
moveByin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(double, double)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Point2D)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, javafx.geometry.Point2D offset, Motion motion) Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Node), with the given offset (from theoffsetReferencePos, and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Window)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(String)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Matcher)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
Description copied from interface:FxRobotInterfaceConvenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Predicate)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
pointOfVisibleNode
-
pointOfVisibleNode
private <T extends javafx.scene.Node> PointQuery pointOfVisibleNode(org.hamcrest.Matcher<T> matcher) -
pointOfVisibleNode
-
queryNode
-
queryVisibleNode
-