Package org.testfx.api
Class FxRobot
- java.lang.Object
-
- org.testfx.api.FxRobot
-
- All Implemented Interfaces:
FxRobotInterface
- Direct Known Subclasses:
ApplicationExtension,ApplicationRule,ApplicationTest,ApplicationTest
public class FxRobot extends java.lang.Object implements FxRobotInterface
-
-
Field Summary
Fields Modifier and Type Field Description private FxRobotContextcontext
-
Constructor Summary
Constructors Constructor Description FxRobot()Constructs all robot-related implementations and setstargetPos(Pos)toPos.CENTER.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BoundsQuerybounds(double minX, double minY, double width, double height)BoundsQuerybounds(java.lang.String query)NOT YET IMPLEMENTED<T extends javafx.scene.Node>
BoundsQuerybounds(java.util.function.Predicate<T> predicate)NOT YET IMPLEMENTEDBoundsQuerybounds(javafx.geometry.Bounds bounds)Creates aBoundsQuerythat returns the given boundsBoundsQuerybounds(javafx.geometry.Point2D point)BoundsQuerybounds(javafx.scene.Node node)BoundsQuerybounds(javafx.scene.Scene scene)CallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)with given scene's boundsBoundsQuerybounds(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 IMPLEMENTEDCapturecapture(java.net.URL url)Capturecapture(java.nio.file.Path path)Convenience method: Returns aCapturethat supplies theImagefrom the image file of the givenPath.Capturecapture(javafx.geometry.Bounds bounds)Returns aCapturethat supplies a screenshot using the given bounds.Capturecapture(javafx.geometry.Rectangle2D screenRegion)Returns aCapturethat supplies a screenshot using the given rectangle's bounds.Capturecapture(javafx.scene.image.Image image)Convenience method: Returns aCapturethat supplies the givenImage.Capturecapture(javafx.scene.Node node)Returns aCapturethat supplies a screenshot using the given node's bounds.FxRobotclickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)Convenience method: Moves mouse using the givenmotion(see:Motionto the given coordinates, clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(java.lang.String query, Motion motion, javafx.scene.input.MouseButton... buttons)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>
FxRobotclickOn(java.util.function.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), clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(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), clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)Convenience method: Moves mouse using the givenmotion(see:Motionto the given point, clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(javafx.scene.input.MouseButton... buttons)CallsClickRobot.clickOn(MouseButton...)and returns itself for more method chaining.FxRobotclickOn(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), clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(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), clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(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), clicks the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotclickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Matcher), clicks the given buttons, and returns itself for method chaining.FxRobotclickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)CallsClickRobot.clickOn(PointQuery, MouseButton...)and returns itself for more method chaining.FxRobotcloseCurrentWindow()Deprecated.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms.FxRobotdoubleClickOn(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.FxRobotdoubleClickOn(java.lang.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(java.util.function.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.FxRobotdoubleClickOn(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.FxRobotdoubleClickOn(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.FxRobotdoubleClickOn(javafx.scene.input.MouseButton... buttons)CallsClickRobot.doubleClickOn(MouseButton...)and returns itself for more method chaining.FxRobotdoubleClickOn(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.FxRobotdoubleClickOn(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.FxRobotdoubleClickOn(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.FxRobotdoubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)CallsClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...)and returns itself for method chaining.FxRobotdrag(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.FxRobotdrag(java.lang.String query, javafx.scene.input.MouseButton... buttons)Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(String), presses the given buttons, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdrag(java.util.function.Predicate<T> predicate, javafx.scene.input.MouseButton... buttons)Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate), presses the given buttons, and returns itself for method chaining.FxRobotdrag(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.FxRobotdrag(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.FxRobotdrag(javafx.scene.input.MouseButton... buttons)CallsDragRobot.drag(MouseButton...)and returns itself for more method chaining.FxRobotdrag(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.FxRobotdrag(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.FxRobotdrag(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.FxRobotdrag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)CallsDragRobot.drag(PointQuery, MouseButton...)and returns itself for more method chaining.FxRobotdrop()CallsDragRobot.drop()and returns itself for more method chaining.FxRobotdropBy(double x, double y)CallsDragRobot.dropBy(double, double)and returns itself for more method chaining.FxRobotdropTo(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.FxRobotdropTo(java.lang.String query)Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(String), releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)- orFxRobotInterface.press(MouseButton...)-related methods, and returns itself for method chaining.<T extends javafx.scene.Node>
FxRobotdropTo(java.util.function.Predicate<T> predicate)Convenience method: Moves mouse to the point returned fromFxRobotInterface.point(Predicate), releases the buttons that were pressed inFxRobotInterface.drag(MouseButton...)- orFxRobotInterface.press(MouseButton...)-related methods, and returns itself for method chaining.FxRobotdropTo(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.FxRobotdropTo(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.FxRobotdropTo(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.FxRobotdropTo(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.FxRobotdropTo(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.FxRobotdropTo(PointQuery pointQuery)CallsDragRobot.dropTo(PointQuery)and returns itself for more method chaining.FxRoboteraseText(int amount)Convenience method: CallsTypeRobot.type(KeyCode, int)withKeyCode.BACK_SPACEand returns itself for more method chaining.NodeQueryfrom(java.util.Collection<javafx.scene.Node> parentNodes)CallsNodeFinder.from(Collection)and returns itself for method chaining.NodeQueryfrom(javafx.scene.Node... parentNodes)CallsNodeFinder.from(Node...)and returns itself for method chaining.NodeQueryfrom(NodeQuery nodeQuery)Convenience method: CallsNodeFinder.from(NodeQuery)and returns itself for method chaining.NodeQueryfromAll()CallsNodeFinder.fromAll()and returns itself for method chaining.FxRobotinteract(java.lang.Runnable runnable)Calls a runnable on the FX application thread and waits for it and consecutive events to execute.<T> FxRobotinteract(java.util.concurrent.Callable<T> callable)Calls a callable on the FX application thread and waits for it and consecutive events to execute.FxRobotinteractNoWait(java.lang.Runnable runnable)Calls a runnable on the FX application thread and waits for it to execute.<T> FxRobotinteractNoWait(java.util.concurrent.Callable<T> callable)Calls a callable on the FX application thread and waits for it to execute.FxRobotinterrupt()CallsWaitForAsyncUtils.waitForFxEvents()and returns itself for method chaining.FxRobotinterrupt(int attemptsCount)CallsWaitForAsyncUtils.waitForFxEvents(int)and returns itself for method chaining.java.util.List<javafx.stage.Window>listTargetWindows()CallsWindowFinder.listTargetWindows()and returns itself for method chaining.java.util.List<javafx.stage.Window>listWindows()CallsWindowFinder.listWindows()()} and returns itself for method chaining.NodeQuerylookup(java.lang.String query)Convenience method: CallsNodeFinder.lookup(String)and returns itself for method chaining.<T extends javafx.scene.Node>
NodeQuerylookup(java.util.function.Predicate<T> predicate)Convenience method: CallsNodeFinder.lookup(Predicate)and returns itself for method chaining.<T extends javafx.scene.Node>
NodeQuerylookup(org.hamcrest.Matcher<T> matcher)Convenience method: CallsNodeFinder.lookup(Matcher)and returns itself for method chaining.FxRobotmoveBy(double x, double y, Motion motion)CallsMoveRobot.moveBy(double, double, Motion)and returns itself for more method chaining.FxRobotmoveTo(double x, double y, Motion motion)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(double, double)and returns itself for method chaining.FxRobotmoveTo(java.lang.String query, Motion motion)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>
FxRobotmoveTo(java.util.function.Predicate<T> predicate, Motion motion)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Predicate)and returns itself for method chaining.FxRobotmoveTo(javafx.geometry.Bounds bounds, Motion motion)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Bounds)and returns itself for method chaining.FxRobotmoveTo(javafx.geometry.Point2D point, Motion motion)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Point2D)and returns itself for method chaining.FxRobotmoveTo(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.FxRobotmoveTo(javafx.scene.Scene scene, Motion motion)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Scene)and returns itself for method chaining.FxRobotmoveTo(javafx.stage.Window window, Motion motion)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>
FxRobotmoveTo(org.hamcrest.Matcher<T> matcher, Motion motion)Convenience method: Moves mouse using the givenmotion(see:Motionto the point returned fromFxRobotInterface.point(Matcher)and returns itself for method chaining.FxRobotmoveTo(PointQuery pointQuery, Motion motion)CallsMoveRobot.moveTo(PointQuery, Motion)and returns itself for more method chaining.PointQueryoffset(java.lang.String query, double offsetX, double offsetY)Convenience method: CallsFxRobotInterface.point(String)and sets the query's offset by the given offset values.<T extends javafx.scene.Node>
PointQueryoffset(java.util.function.Predicate<T> predicate, double offsetX, double offsetY)Convenience method: CallsFxRobotInterface.point(Predicate)and sets the query's offset by the given offset values.PointQueryoffset(javafx.geometry.Bounds bounds, double offsetX, double offsetY)Convenience method: CallsFxRobotInterface.point(Bounds)and sets the query's offset by the given offset values.PointQueryoffset(javafx.geometry.Point2D point, double offsetX, double offsetY)Convenience method: CallsFxRobotInterface.point(Point2D)and sets the query's offset by the given offset values.PointQueryoffset(javafx.scene.Node node, double offsetX, double offsetY)Convenience method: CallsFxRobotInterface.point(Node)and sets the query's offset by the given offset values.PointQueryoffset(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.PointQueryoffset(javafx.scene.Scene scene, double offsetX, double offsetY)Convenience method: CallsFxRobotInterface.point(Scene)and sets the query's offset by the given offset values.PointQueryoffset(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.PointQuerypoint(double x, double y)CallsPointLocator.point(Point2D)usingnew Point2D(x, y)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().PointQuerypoint(java.lang.String query)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>
PointQuerypoint(java.util.function.Predicate<T> predicate)Convenience method: Tries to find a given node viaFxRobotInterface.lookup(Predicate)before callingFxRobotInterface.point(Node), throwing aFxRobotExceptionif no node is found.PointQuerypoint(javafx.geometry.Bounds bounds)CallsPointLocator.point(Bounds)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().PointQuerypoint(javafx.geometry.Point2D point)CallsPointLocator.point(Point2D)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().PointQuerypoint(javafx.scene.Node node)CallsPointLocator.point(Node)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().PointQuerypoint(javafx.scene.Scene scene)CallsPointLocator.point(Scene)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().PointQuerypoint(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(java.lang.String query)private <T extends javafx.scene.Node>
PointQuerypointOfVisibleNode(java.util.function.Predicate<T> predicate)private <T extends javafx.scene.Node>
PointQuerypointOfVisibleNode(org.hamcrest.Matcher<T> matcher)FxRobotpress(javafx.scene.input.KeyCode... keys)CallsKeyboardRobot.press(KeyCode...)and returns itself for method chaining.FxRobotpress(javafx.scene.input.MouseButton... buttons)Presses and holds mouse buttons.FxRobotpush(javafx.scene.input.KeyCode... combination)CallsTypeRobot.push(KeyCode...)and returns itself for more method chaining.FxRobotpush(javafx.scene.input.KeyCodeCombination combination)CallsTypeRobot.push(KeyCodeCombination)and returns itself for more method chaining.private javafx.scene.NodequeryNode(NodeQuery nodeQuery, java.lang.String queryDescription)private javafx.scene.NodequeryVisibleNode(NodeQuery nodeQuery, java.lang.String queryDescription)FxRobotrelease(javafx.scene.input.KeyCode... keys)CallsKeyboardRobot.press(KeyCode...)and returns itself for method chaining.FxRobotrelease(javafx.scene.input.MouseButton... buttons)Releases pressed mouse buttons.FxRobotrightClickOn()Convenience method: Clicks theMouseButton.SECONDARYbutton and returns itself for method chaining.FxRobotrightClickOn(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.FxRobotrightClickOn(java.lang.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(java.util.function.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.FxRobotrightClickOn(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.FxRobotrightClickOn(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.FxRobotrightClickOn(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.FxRobotrightClickOn(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.FxRobotrightClickOn(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.FxRobotrightClickOn(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.FxRobotContextrobotContext()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.FxRobotscroll(int amount)Deprecated.FxRobotscroll(int amount, javafx.geometry.HorizontalDirection direction)CallsScrollRobot.scroll(int, HorizontalDirection)and returns itself for more method chaining.FxRobotscroll(int amount, javafx.geometry.VerticalDirection direction)CallsScrollRobot.scroll(int, VerticalDirection)and returns itself for more method chaining.FxRobotscroll(javafx.geometry.HorizontalDirection direction)CallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand returns itself for more method chaining.FxRobotscroll(javafx.geometry.VerticalDirection direction)CallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand returns itself for more method chaining.FxRobotsleep(long milliseconds)CallsSleepRobot.sleep(long)and returns itself for more method chaining.FxRobotsleep(long duration, java.util.concurrent.TimeUnit timeUnit)CallsSleepRobot.sleep(long, TimeUnit)and returns itself for more method chaining.FxRobottargetPos(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.WindowtargetWindow()CallsWindowFinder.targetWindow()and returns itself for method chaining.FxRobottargetWindow(int windowNumber)Convenience method: CallsWindowFinder.targetWindow(int)and returns itself for method chaining.FxRobottargetWindow(java.lang.String stageTitleRegex)Convenience method: CallsWindowFinder.targetWindow(String)and returns itself for method chaining.FxRobottargetWindow(java.util.function.Predicate<javafx.stage.Window> predicate)CallsWindowFinder.targetWindow(Predicate)and returns itself for method chaining.FxRobottargetWindow(java.util.regex.Pattern stageTitlePattern)Convenience method: CallsWindowFinder.targetWindow(Pattern)and returns itself for method chaining.FxRobottargetWindow(javafx.scene.Node node)Convenience method: CallsWindowFinder.targetWindow(Node)and returns itself for method chaining.FxRobottargetWindow(javafx.scene.Scene scene)Convenience method: CallsWindowFinder.targetWindow(Scene)and returns itself for method chaining.FxRobottargetWindow(javafx.stage.Window window)CallsWindowFinder.targetWindow(Window)and returns itself for method chaining.FxRobottype(javafx.scene.input.KeyCode... keyCodes)CallsTypeRobot.type(KeyCode...)and returns itself for more method chaining.FxRobottype(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.Windowwindow(java.lang.String stageTitleRegex)Convenience method: CallsWindowFinder.window(String)and returns itself for method chaining.javafx.stage.Windowwindow(java.util.function.Predicate<javafx.stage.Window> predicate)CallsWindowFinder.window(Predicate)and returns itself for method chaining.javafx.stage.Windowwindow(java.util.regex.Pattern stageTitlePattern)Convenience 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.FxRobotwrite(char character)CallsWriteRobot.write(char)and returns itself for more method chaining.FxRobotwrite(java.lang.String text)CallsWriteRobot.write(String)and returns itself for more method chaining.FxRobotwrite(java.lang.String text, int sleepMillis)CallsWriteRobot.write(String, int)and returns itself for more method chaining.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testfx.api.FxRobotInterface
clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, clickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, doubleClickOn, moveBy, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, offset, offset, offset, offset, offset, offset, offset, offset, offset, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn
-
-
-
-
Field Detail
-
context
private final FxRobotContext context
-
-
Constructor Detail
-
FxRobot
public FxRobot()
Constructs all robot-related implementations and setstargetPos(Pos)toPos.CENTER.
-
-
Method Detail
-
robotContext
public FxRobotContext robotContext()
Returns the internal context.
-
targetWindow
public javafx.stage.Window targetWindow()
Description copied from interface:FxRobotInterfaceCallsWindowFinder.targetWindow()and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(javafx.stage.Window window)
Description copied from interface:FxRobotInterfaceCallsWindowFinder.targetWindow(Window)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(java.util.function.Predicate<javafx.stage.Window> predicate)
Description copied from interface:FxRobotInterfaceCallsWindowFinder.targetWindow(Predicate)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(int windowNumber)
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(int)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(java.lang.String stageTitleRegex)
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(String)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(java.util.regex.Pattern stageTitlePattern)
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(Pattern)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(Scene)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
targetWindow
public FxRobot targetWindow(javafx.scene.Node node)
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.targetWindow(Node)and returns itself for method chaining.- Specified by:
targetWindowin interfaceFxRobotInterface
-
listWindows
public java.util.List<javafx.stage.Window> listWindows()
Description copied from interface:FxRobotInterfaceCallsWindowFinder.listWindows()()} and returns itself for method chaining.- Specified by:
listWindowsin interfaceFxRobotInterface
-
listTargetWindows
public java.util.List<javafx.stage.Window> listTargetWindows()
Description copied from interface:FxRobotInterfaceCallsWindowFinder.listTargetWindows()and returns itself for method chaining.- Specified by:
listTargetWindowsin interfaceFxRobotInterface
-
window
public javafx.stage.Window window(java.util.function.Predicate<javafx.stage.Window> predicate)
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
public javafx.stage.Window window(java.lang.String stageTitleRegex)
Description copied from interface:FxRobotInterfaceConvenience method: CallsWindowFinder.window(String)and returns itself for method chaining.- Specified by:
windowin interfaceFxRobotInterface
-
window
public javafx.stage.Window window(java.util.regex.Pattern stageTitlePattern)
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
public NodeQuery fromAll()
Description copied from interface:FxRobotInterfaceCallsNodeFinder.fromAll()and returns itself for method chaining.- Specified by:
fromAllin interfaceFxRobotInterface
-
from
public NodeQuery from(javafx.scene.Node... parentNodes)
Description copied from interface:FxRobotInterfaceCallsNodeFinder.from(Node...)and returns itself for method chaining.- Specified by:
fromin interfaceFxRobotInterface
-
from
public NodeQuery from(java.util.Collection<javafx.scene.Node> parentNodes)
Description copied from interface:FxRobotInterfaceCallsNodeFinder.from(Collection)and returns itself for method chaining.- Specified by:
fromin interfaceFxRobotInterface
-
from
public NodeQuery from(NodeQuery nodeQuery)
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.from(NodeQuery)and returns itself for method chaining.- Specified by:
fromin interfaceFxRobotInterface
-
lookup
public NodeQuery lookup(java.lang.String query)
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.lookup(String)and returns itself for method chaining.- Specified by:
lookupin interfaceFxRobotInterface
-
lookup
public <T extends javafx.scene.Node> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
Description copied from interface:FxRobotInterfaceConvenience method: CallsNodeFinder.lookup(Matcher)and returns itself for method chaining.- Specified by:
lookupin interfaceFxRobotInterface
-
lookup
public <T extends javafx.scene.Node> NodeQuery lookup(java.util.function.Predicate<T> predicate)
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
public BoundsQuery bounds(double minX, double minY, double width, double height)
Description copied from interface:FxRobotInterface- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.geometry.Point2D point)
Description copied from interface:FxRobotInterface- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterfaceCreates aBoundsQuerythat returns the given bounds- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.scene.Node node)
Description copied from interface:FxRobotInterface- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterfaceCallsBoundsQueryUtils.boundsOnScreen(Bounds, Scene)with given scene's bounds- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(javafx.stage.Window window)
Description copied from interface:FxRobotInterfaceCallsBoundsQueryUtils.boundsOnScreen(Bounds, Window)with the given window's bounds- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public BoundsQuery bounds(java.lang.String query)
Description copied from interface:FxRobotInterfaceNOT YET IMPLEMENTED- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public <T extends javafx.scene.Node> BoundsQuery bounds(org.hamcrest.Matcher<T> matcher)
Description copied from interface:FxRobotInterfaceNOT YET IMPLEMENTED- Specified by:
boundsin interfaceFxRobotInterface
-
bounds
public <T extends javafx.scene.Node> BoundsQuery bounds(java.util.function.Predicate<T> predicate)
Description copied from interface:FxRobotInterfaceNOT YET IMPLEMENTED- Specified by:
boundsin interfaceFxRobotInterface
-
targetPos
public FxRobot targetPos(javafx.geometry.Pos pointPosition)
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
public PointQuery point(double x, double y)
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Point2D)usingnew Point2D(x, y)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
public PointQuery point(javafx.geometry.Point2D point)
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Point2D)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
public PointQuery point(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Bounds)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
public PointQuery point(javafx.scene.Node node)
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Node)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
public PointQuery point(javafx.scene.Scene scene)
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Scene)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
public PointQuery point(javafx.stage.Window window)
Description copied from interface:FxRobotInterfaceCallsPointLocator.point(Window)and sets thePointQuery'sPointQuery.getPosition()toFxRobotContext.getPointPosition().- Specified by:
pointin interfaceFxRobotInterface
-
point
public PointQuery point(java.lang.String query)
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
public <T extends javafx.scene.Node> PointQuery point(org.hamcrest.Matcher<T> matcher)
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
public <T extends javafx.scene.Node> PointQuery point(java.util.function.Predicate<T> predicate)
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
public PointQuery offset(javafx.geometry.Point2D point, double offsetX, double offsetY)
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
public PointQuery offset(javafx.geometry.Bounds bounds, double offsetX, double offsetY)
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
public PointQuery offset(javafx.scene.Node node, double offsetX, double offsetY)
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
public PointQuery offset(javafx.scene.Scene scene, double offsetX, double offsetY)
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
public PointQuery offset(javafx.stage.Window window, double offsetX, double offsetY)
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
public PointQuery offset(java.lang.String query, double offsetX, double offsetY)
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(java.util.function.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
public Capture capture(javafx.geometry.Rectangle2D screenRegion)
Description copied from interface:FxRobotInterfaceReturns aCapturethat supplies a screenshot using the given rectangle's bounds.- Specified by:
capturein interfaceFxRobotInterface
-
capture
public Capture capture(javafx.geometry.Bounds bounds)
Description copied from interface:FxRobotInterfaceReturns aCapturethat supplies a screenshot using the given bounds.- Specified by:
capturein interfaceFxRobotInterface
-
capture
public Capture capture(javafx.scene.Node node)
Description copied from interface:FxRobotInterfaceReturns aCapturethat supplies a screenshot using the given node's bounds.- Specified by:
capturein interfaceFxRobotInterface
-
capture
public Capture capture(javafx.scene.image.Image image)
Description copied from interface:FxRobotInterfaceConvenience method: Returns aCapturethat supplies the givenImage.- Specified by:
capturein interfaceFxRobotInterface
-
capture
public Capture capture(java.nio.file.Path path)
Description copied from interface:FxRobotInterfaceConvenience method: Returns aCapturethat supplies theImagefrom the image file of the givenPath.- Specified by:
capturein interfaceFxRobotInterface
-
capture
public Capture capture(java.net.URL url)
Description copied from interface:FxRobotInterface- Specified by:
capturein interfaceFxRobotInterface
-
interact
public FxRobot interact(java.lang.Runnable runnable)
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
public <T> FxRobot interact(java.util.concurrent.Callable<T> callable)
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
public FxRobot interactNoWait(java.lang.Runnable runnable)
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
public <T> FxRobot interactNoWait(java.util.concurrent.Callable<T> callable)
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
public FxRobot interrupt()
Description copied from interface:FxRobotInterfaceCallsWaitForAsyncUtils.waitForFxEvents()and returns itself for method chaining.- Specified by:
interruptin interfaceFxRobotInterface
-
interrupt
public FxRobot interrupt(int attemptsCount)
Description copied from interface:FxRobotInterfaceCallsWaitForAsyncUtils.waitForFxEvents(int)and returns itself for method chaining.- Specified by:
interruptin interfaceFxRobotInterface
-
push
public FxRobot push(javafx.scene.input.KeyCode... combination)
Description copied from interface:FxRobotInterfaceCallsTypeRobot.push(KeyCode...)and returns itself for more method chaining.- Specified by:
pushin interfaceFxRobotInterface
-
push
public FxRobot push(javafx.scene.input.KeyCodeCombination combination)
Description copied from interface:FxRobotInterfaceCallsTypeRobot.push(KeyCodeCombination)and returns itself for more method chaining.- Specified by:
pushin interfaceFxRobotInterface
-
type
public FxRobot type(javafx.scene.input.KeyCode... keyCodes)
Description copied from interface:FxRobotInterfaceCallsTypeRobot.type(KeyCode...)and returns itself for more method chaining.- Specified by:
typein interfaceFxRobotInterface
-
type
public FxRobot type(javafx.scene.input.KeyCode keyCode, int times)
Description copied from interface:FxRobotInterfaceCallsTypeRobot.type(KeyCode, int)and returns itself for more method chaining.- Specified by:
typein interfaceFxRobotInterface
-
eraseText
public FxRobot eraseText(int amount)
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 public FxRobot closeCurrentWindow()
Deprecated.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms.
-
write
public FxRobot write(char character)
Description copied from interface:FxRobotInterfaceCallsWriteRobot.write(char)and returns itself for more method chaining.- Specified by:
writein interfaceFxRobotInterface
-
write
public FxRobot write(java.lang.String text)
Description copied from interface:FxRobotInterfaceCallsWriteRobot.write(String)and returns itself for more method chaining.- Specified by:
writein interfaceFxRobotInterface
-
write
public FxRobot write(java.lang.String text, int sleepMillis)
Description copied from interface:FxRobotInterfaceCallsWriteRobot.write(String, int)and returns itself for more method chaining.- Specified by:
writein interfaceFxRobotInterface
-
sleep
public FxRobot sleep(long milliseconds)
Description copied from interface:FxRobotInterfaceCallsSleepRobot.sleep(long)and returns itself for more method chaining.- Specified by:
sleepin interfaceFxRobotInterface
-
sleep
public FxRobot sleep(long duration, java.util.concurrent.TimeUnit timeUnit)
Description copied from interface:FxRobotInterfaceCallsSleepRobot.sleep(long, TimeUnit)and returns itself for more method chaining.- Specified by:
sleepin interfaceFxRobotInterface
-
scroll
@Deprecated public FxRobot scroll(int amount)
Deprecated.Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int)and returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
public FxRobot scroll(int amount, javafx.geometry.VerticalDirection direction)
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, VerticalDirection)and returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
public FxRobot scroll(javafx.geometry.VerticalDirection direction)
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
public FxRobot scroll(int amount, javafx.geometry.HorizontalDirection direction)
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, HorizontalDirection)and returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
scroll
public FxRobot scroll(javafx.geometry.HorizontalDirection direction)
Description copied from interface:FxRobotInterfaceCallsScrollRobot.scroll(int, VerticalDirection)with arguments1anddirectionand returns itself for more method chaining.- Specified by:
scrollin interfaceFxRobotInterface
-
press
public FxRobot press(javafx.scene.input.KeyCode... keys)
Description copied from interface:FxRobotInterfaceCallsKeyboardRobot.press(KeyCode...)and returns itself for method chaining.- Specified by:
pressin interfaceFxRobotInterface
-
release
public FxRobot release(javafx.scene.input.KeyCode... keys)
Description copied from interface:FxRobotInterfaceCallsKeyboardRobot.press(KeyCode...)and returns itself for method chaining.- Specified by:
releasein interfaceFxRobotInterface
-
press
public FxRobot press(javafx.scene.input.MouseButton... buttons)
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
public FxRobot release(javafx.scene.input.MouseButton... buttons)
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
public FxRobot clickOn(javafx.scene.input.MouseButton... buttons)
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
public FxRobot doubleClickOn(javafx.scene.input.MouseButton... buttons)
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
public FxRobot clickOn(java.lang.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), 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(java.util.function.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
public FxRobot rightClickOn()
Description copied from interface:FxRobotInterfaceConvenience method: Clicks theMouseButton.SECONDARYbutton and returns itself for method chaining.- Specified by:
rightClickOnin interfaceFxRobotInterface
-
rightClickOn
public FxRobot rightClickOn(PointQuery pointQuery, Motion motion)
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
public FxRobot rightClickOn(double x, double y, Motion motion)
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
public FxRobot rightClickOn(javafx.geometry.Point2D point, Motion motion)
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
public FxRobot rightClickOn(javafx.geometry.Bounds bounds, Motion motion)
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
public FxRobot rightClickOn(javafx.scene.Node node, Motion motion)
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
public FxRobot rightClickOn(javafx.scene.Scene scene, Motion motion)
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
public FxRobot rightClickOn(javafx.stage.Window window, Motion motion)
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
public FxRobot rightClickOn(java.lang.String query, Motion motion)
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
public <T extends javafx.scene.Node> FxRobot rightClickOn(java.util.function.Predicate<T> predicate, Motion motion)
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(java.lang.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(java.util.function.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
public FxRobot drag(javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterfaceCallsDragRobot.drag(MouseButton...)and returns itself for more method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drag
public FxRobot drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
Description copied from interface:FxRobotInterfaceCallsDragRobot.drag(PointQuery, MouseButton...)and returns itself for more method chaining.- Specified by:
dragin interfaceFxRobotInterface
-
drop
public FxRobot drop()
Description copied from interface:FxRobotInterfaceCallsDragRobot.drop()and returns itself for more method chaining.- Specified by:
dropin interfaceFxRobotInterface
-
dropTo
public FxRobot dropTo(PointQuery pointQuery)
Description copied from interface:FxRobotInterfaceCallsDragRobot.dropTo(PointQuery)and returns itself for more method chaining.- Specified by:
dropToin interfaceFxRobotInterface
-
dropBy
public FxRobot dropBy(double x, double y)
Description copied from interface:FxRobotInterfaceCallsDragRobot.dropBy(double, double)and returns itself for more method chaining.- Specified by:
dropByin interfaceFxRobotInterface
-
drag
public FxRobot drag(double x, double y, javafx.scene.input.MouseButton... buttons)
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
public FxRobot drag(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons)
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
public FxRobot drag(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons)
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
public FxRobot drag(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons)
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
public FxRobot drag(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons)
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
public FxRobot drag(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons)
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
public FxRobot drag(java.lang.String query, javafx.scene.input.MouseButton... buttons)
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(java.util.function.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
public FxRobot dropTo(double x, double y)
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
public FxRobot dropTo(javafx.geometry.Point2D point)
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
public FxRobot dropTo(javafx.geometry.Bounds bounds)
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
public FxRobot dropTo(javafx.scene.Node node)
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
public FxRobot dropTo(javafx.scene.Scene scene)
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
public FxRobot dropTo(javafx.stage.Window window)
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
public FxRobot dropTo(java.lang.String query)
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
public <T extends javafx.scene.Node> FxRobot dropTo(org.hamcrest.Matcher<T> matcher)
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
public <T extends javafx.scene.Node> FxRobot dropTo(java.util.function.Predicate<T> predicate)
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
public FxRobot moveTo(PointQuery pointQuery, Motion motion)
Description copied from interface:FxRobotInterfaceCallsMoveRobot.moveTo(PointQuery, Motion)and returns itself for more method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveBy
public FxRobot moveBy(double x, double y, Motion motion)
Description copied from interface:FxRobotInterfaceCallsMoveRobot.moveBy(double, double, Motion)and returns itself for more method chaining.- Specified by:
moveByin interfaceFxRobotInterface
-
moveTo
public FxRobot moveTo(double x, double y, Motion motion)
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
public FxRobot moveTo(javafx.geometry.Point2D point, Motion motion)
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
public FxRobot moveTo(javafx.geometry.Bounds bounds, Motion motion)
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
public FxRobot moveTo(javafx.scene.Scene scene, Motion motion)
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
public FxRobot moveTo(javafx.stage.Window window, Motion motion)
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
public FxRobot moveTo(java.lang.String query, Motion motion)
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
public <T extends javafx.scene.Node> FxRobot moveTo(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)and returns itself for method chaining.- Specified by:
moveToin interfaceFxRobotInterface
-
moveTo
public <T extends javafx.scene.Node> FxRobot moveTo(java.util.function.Predicate<T> predicate, Motion motion)
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
private PointQuery pointOfVisibleNode(java.lang.String query)
-
pointOfVisibleNode
private <T extends javafx.scene.Node> PointQuery pointOfVisibleNode(org.hamcrest.Matcher<T> matcher)
-
pointOfVisibleNode
private <T extends javafx.scene.Node> PointQuery pointOfVisibleNode(java.util.function.Predicate<T> predicate)
-
queryNode
private javafx.scene.Node queryNode(NodeQuery nodeQuery, java.lang.String queryDescription)
-
queryVisibleNode
private javafx.scene.Node queryVisibleNode(NodeQuery nodeQuery, java.lang.String queryDescription)
-
-