Interface FxRobotInterface

All Known Implementing Classes:
ApplicationExtension, ApplicationRule, ApplicationTest, ApplicationTest, FxRobot

public interface FxRobotInterface
Wrapper-like interface that makes it easier to chain together multiple robot methods while adding a number of convenience methods, such as finding a given node, scene or window via a PointQuery, a Predicate, or a Matcher.
  • Method Details

    • targetWindow

      javafx.stage.Window targetWindow()
      Calls WindowFinder.targetWindow() and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(javafx.stage.Window window)
      Calls WindowFinder.targetWindow(Window) and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(Predicate<javafx.stage.Window> predicate)
      Calls WindowFinder.targetWindow(Predicate) and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(int windowIndex)
      Convenience method: Calls WindowFinder.targetWindow(int) and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(String stageTitleRegex)
      Convenience method: Calls WindowFinder.targetWindow(String) and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(Pattern stageTitlePattern)
      Convenience method: Calls WindowFinder.targetWindow(Pattern) and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(javafx.scene.Scene scene)
      Convenience method: Calls WindowFinder.targetWindow(Scene) and returns itself for method chaining.
    • targetWindow

      FxRobotInterface targetWindow(javafx.scene.Node node)
      Convenience method: Calls WindowFinder.targetWindow(Node) and returns itself for method chaining.
    • listWindows

      List<javafx.stage.Window> listWindows()
      Calls WindowFinder.listWindows() ()} and returns itself for method chaining.
    • listTargetWindows

      List<javafx.stage.Window> listTargetWindows()
      Calls WindowFinder.listTargetWindows() and returns itself for method chaining.
    • window

      javafx.stage.Window window(Predicate<javafx.stage.Window> predicate)
      Calls WindowFinder.window(Predicate) and returns itself for method chaining.
    • window

      javafx.stage.Window window(int windowIndex)
      Convenience method: Calls WindowFinder.window(int) and returns itself for method chaining.
    • window

      javafx.stage.Window window(String stageTitleRegex)
      Convenience method: Calls WindowFinder.window(String) and returns itself for method chaining.
    • window

      javafx.stage.Window window(Pattern stageTitlePattern)
      Convenience method: Calls WindowFinder.window(Pattern) and returns itself for method chaining.
    • window

      javafx.stage.Window window(javafx.scene.Scene scene)
      Convenience method: Calls WindowFinder.window(Scene) and returns itself for method chaining.
    • window

      javafx.stage.Window window(javafx.scene.Node node)
      Convenience method: Calls WindowFinder.window(Node) and returns itself for method chaining.
    • fromAll

      NodeQuery fromAll()
      Calls NodeFinder.fromAll() and returns itself for method chaining.
    • from

      NodeQuery from(javafx.scene.Node... parentNodes)
      Calls NodeFinder.from(Node...) and returns itself for method chaining.
    • from

      NodeQuery from(Collection<javafx.scene.Node> parentNodes)
      Calls NodeFinder.from(Collection) and returns itself for method chaining.
    • rootNode

      javafx.scene.Node rootNode(javafx.stage.Window window)
      Calls NodeFinder.rootNode(Window) and returns itself for method chaining.
    • rootNode

      javafx.scene.Node rootNode(javafx.scene.Scene scene)
      Calls NodeFinder.rootNode(Scene) and returns itself for method chaining.
    • rootNode

      javafx.scene.Node rootNode(javafx.scene.Node node)
      Calls NodeFinder.rootNode(Node) and returns itself for method chaining.
    • lookup

      NodeQuery lookup(String query)
      Convenience method: Calls NodeFinder.lookup(String) and returns itself for method chaining.
    • lookup

      <T extends javafx.scene.Node> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
      Convenience method: Calls NodeFinder.lookup(Matcher) and returns itself for method chaining.
    • lookup

      <T extends javafx.scene.Node> NodeQuery lookup(Predicate<T> predicate)
      Convenience method: Calls NodeFinder.lookup(Predicate) and returns itself for method chaining.
    • from

      NodeQuery from(NodeQuery nodeQuery)
      Convenience method: Calls NodeFinder.from(NodeQuery) and returns itself for method chaining.
    • bounds

      BoundsQuery bounds(double minX, double minY, double width, double height)
    • bounds

      BoundsQuery bounds(javafx.geometry.Point2D point)
    • bounds

      BoundsQuery bounds(javafx.geometry.Bounds bounds)
      Creates a BoundsQuery that returns the given bounds
    • bounds

      BoundsQuery bounds(javafx.scene.Node node)
    • bounds

      BoundsQuery bounds(javafx.scene.Scene scene)
      Calls BoundsQueryUtils.boundsOnScreen(Bounds, Scene) with given scene's bounds
    • bounds

      BoundsQuery bounds(javafx.stage.Window window)
      Calls BoundsQueryUtils.boundsOnScreen(Bounds, Window) with the given window's bounds
    • bounds

      BoundsQuery bounds(String query)
      NOT YET IMPLEMENTED
    • bounds

      <T extends javafx.scene.Node> BoundsQuery bounds(org.hamcrest.Matcher<T> matcher)
      NOT YET IMPLEMENTED
    • bounds

      <T extends javafx.scene.Node> BoundsQuery bounds(Predicate<T> predicate)
      NOT YET IMPLEMENTED
    • targetPos

      FxRobotInterface targetPos(javafx.geometry.Pos pointPosition)
      Stores the given position as the position to be used in all point()-related methods such as point(Node) and point(Point2D), and returns itself for method chaining. The default value is Pos.CENTER
    • point

      PointQuery point(double x, double y)
      Calls PointLocator.point(Point2D) using new Point2D(x, y) and sets the PointQuery's PointQuery.getPosition() to FxRobotContext.getPointPosition().
    • point

      PointQuery point(javafx.geometry.Point2D point)
    • point

      PointQuery point(javafx.geometry.Bounds bounds)
    • point

      PointQuery point(javafx.scene.Node node)
    • point

      PointQuery point(javafx.scene.Scene scene)
    • point

      PointQuery point(javafx.stage.Window window)
    • point

      PointQuery point(String query)
      Convenience method: Tries to find a given node via lookup(String) before calling point(Node), throwing a FxRobotException if no node is found.
    • point

      <T extends javafx.scene.Node> PointQuery point(org.hamcrest.Matcher<T> matcher)
      Convenience method: Tries to find a given node via lookup(Matcher) before calling point(Node), throwing a FxRobotException if no node is found.
    • point

      <T extends javafx.scene.Node> PointQuery point(Predicate<T> predicate)
      Convenience method: Tries to find a given node via lookup(Predicate) before calling point(Node), throwing a FxRobotException if no node is found.
    • offset

      PointQuery offset(javafx.geometry.Point2D point, double offsetX, double offsetY)
      Convenience method: Calls point(Point2D) and sets the query's offset by the given offset values.
    • offset

      default PointQuery offset(javafx.geometry.Point2D point, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Point2D) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      PointQuery offset(javafx.geometry.Bounds bounds, double offsetX, double offsetY)
      Convenience method: Calls point(Bounds) and sets the query's offset by the given offset values.
    • offset

      default PointQuery offset(javafx.geometry.Bounds bounds, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Bounds) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      PointQuery offset(javafx.scene.Node node, double offsetX, double offsetY)
      Convenience method: Calls point(Node) and sets the query's offset by the given offset values.
    • offset

      default PointQuery offset(javafx.scene.Node node, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Node) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      PointQuery offset(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, double offsetX, double offsetY)
      Convenience method: Calls 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

      default PointQuery offset(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Node) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY) where the offset is computed with respect to the given offset reference position.
    • offset

      PointQuery offset(javafx.scene.Scene scene, double offsetX, double offsetY)
      Convenience method: Calls point(Scene) and sets the query's offset by the given offset values.
    • offset

      default PointQuery offset(javafx.scene.Scene scene, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Scene) and sets the query's offset by the given offset offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      PointQuery offset(javafx.stage.Window window, double offsetX, double offsetY)
      Convenience method: Calls point(Window) and sets the query's offset by the given offset values.
    • offset

      default PointQuery offset(javafx.stage.Window window, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Window) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      PointQuery offset(String query, double offsetX, double offsetY)
      Convenience method: Calls point(String) and sets the query's offset by the given offset values.
    • offset

      default PointQuery offset(String query, javafx.geometry.Point2D offset)
      Convenience method: Calls point(String) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      <T extends javafx.scene.Node> PointQuery offset(org.hamcrest.Matcher<T> matcher, double offsetX, double offsetY)
      Convenience method: Calls point(Matcher) and sets the query's offset by the given offset values.
    • offset

      default <T extends javafx.scene.Node> PointQuery offset(org.hamcrest.Matcher<T> matcher, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Matcher) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • offset

      <T extends javafx.scene.Node> PointQuery offset(Predicate<T> predicate, double offsetX, double offsetY)
      Convenience method: Calls point(Predicate) and sets the query's offset by the given offset values.
    • offset

      default <T extends javafx.scene.Node> PointQuery offset(Predicate<T> predicate, javafx.geometry.Point2D offset)
      Convenience method: Calls point(Predicate) and sets the query's offset by the given offset point (where the point's x-component is the offsetX, and the point's y-component is the offsetY).
    • capture

      Capture capture(javafx.geometry.Rectangle2D screenRegion)
      Returns a Capture that supplies a screenshot using the given rectangle's bounds.
    • capture

      Capture capture(javafx.geometry.Bounds bounds)
      Returns a Capture that supplies a screenshot using the given bounds.
    • capture

      Capture capture(javafx.scene.Node node)
      Returns a Capture that supplies a screenshot using the given node's bounds.
    • capture

      Capture capture(javafx.scene.image.Image image)
      Convenience method: Returns a Capture that supplies the given Image.
    • capture

      Capture capture(Path path)
      Convenience method: Returns a Capture that supplies the Image from the image file of the given Path.
    • capture

      Capture capture(URL url)
      Convenience method: Returns a Capture that supplies the Image from the image file of the given URL.
    • interact

      FxRobotInterface interact(Runnable runnable)
      Calls a runnable on the FX application thread and waits for it and consecutive events to execute. So changes to the gui triggered by the runnable will be performed when returned from this method.
      Parameters:
      runnable - the runnable
      Returns:
      this robot
    • interact

      <T> FxRobotInterface interact(Callable<T> callable)
      Calls a callable on the FX application thread and waits for it and consecutive events to execute. So changes to the gui triggered by the callable will be performed when returned from this method.
      Parameters:
      callable - the callable
      Returns:
      this robot
    • interactNoWait

      FxRobotInterface interactNoWait(Runnable runnable)
      Calls a runnable on the FX application thread and waits for it to execute. It does not wait for other events on the fx application thread. So changes to the gui triggered by the runnable may not be performed when returned from this method.
      Parameters:
      runnable - the runnable
      Returns:
      this robot
    • interactNoWait

      <T> FxRobotInterface interactNoWait(Callable<T> callable)
      Calls a callable on the FX application thread and waits for it to execute. It does not wait for other events on the fx application thread. So changes to the gui triggered by the callable may not be performed when returned from this method.
      Parameters:
      callable - the callable
      Returns:
      this robot
    • interrupt

      FxRobotInterface interrupt()
      Calls WaitForAsyncUtils.waitForFxEvents() and returns itself for method chaining.
    • interrupt

      FxRobotInterface interrupt(int attemptsCount)
      Calls WaitForAsyncUtils.waitForFxEvents(int) and returns itself for method chaining.
    • sleep

      FxRobotInterface sleep(long milliseconds)
      Calls SleepRobot.sleep(long) and returns itself for more method chaining.
    • sleep

      FxRobotInterface sleep(long duration, TimeUnit timeUnit)
      Calls SleepRobot.sleep(long, TimeUnit) and returns itself for more method chaining.
    • clickOn

      FxRobotInterface clickOn(javafx.scene.input.MouseButton... buttons)
      Calls ClickRobot.clickOn(MouseButton...) and returns itself for more method chaining.
    • clickOn

      default FxRobotInterface clickOn(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
      Calls ClickRobot.clickOn(PointQuery, Motion, MouseButton...) and returns itself for more method chaining.
    • clickOn

      FxRobotInterface clickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
      Calls ClickRobot.clickOn(PointQuery, MouseButton...) and returns itself for more method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(javafx.scene.input.MouseButton... buttons)
      Calls ClickRobot.doubleClickOn(MouseButton...) and returns itself for more method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
      Calls ClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...) and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons)
      Calls ClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...) and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(double x, double y, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the given coordinates, clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the given coordinates, clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the given point, clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the given point, clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Bounds), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Bounds), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Node), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Node), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Scene), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Scene), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Window), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Window), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default FxRobotInterface clickOn(String query, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(String), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      FxRobotInterface clickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(String), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default <T extends javafx.scene.Node> FxRobotInterface clickOn(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Matcher), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      <T extends javafx.scene.Node> FxRobotInterface clickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Matcher), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      default <T extends javafx.scene.Node> FxRobotInterface clickOn(Predicate<T> predicate, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Predicate), clicks the given buttons, and returns itself for method chaining.
    • clickOn

      <T extends javafx.scene.Node> FxRobotInterface clickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Predicate), clicks the given buttons, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn()
      Convenience method: Clicks the MouseButton.SECONDARY button and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(PointQuery pointQuery)
      Convenience method: Moves mouse directly to the point returned from PointQuery.query(), clicks the MouseButton.SECONDARY button and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(PointQuery pointQuery, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from PointQuery.query(), clicks the MouseButton.SECONDARY button and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(double x, double y)
      Convenience method: Moves mouse directly to the given coordinates, clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(double x, double y, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the given coordinates, clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(javafx.geometry.Point2D point)
      Convenience method: Moves mouse to the point returned from point(Point2D), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(javafx.geometry.Point2D point, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Point2D), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(javafx.geometry.Bounds bounds)
      Convenience method: Moves mouse directly to the point returned from point(Bounds), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(javafx.geometry.Bounds bounds, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Bounds), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(javafx.scene.Node node)
      Convenience method: Moves mouse directly to the point returned from point(Node), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(javafx.scene.Node node, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Node), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(javafx.scene.Scene scene)
      Convenience method: Moves mouse directly to the point returned from point(Scene), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(javafx.scene.Scene scene, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Scene), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(javafx.stage.Window window)
      Convenience method: Moves mouse directly to the point returned from point(Window), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(javafx.stage.Window window, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Window), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default FxRobotInterface rightClickOn(String query)
      Convenience method: Moves mouse directly to the point returned from point(String), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      FxRobotInterface rightClickOn(String query, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(String), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default <T extends javafx.scene.Node> FxRobotInterface rightClickOn(org.hamcrest.Matcher<T> matcher)
      Convenience method: Moves mouse directly to the point returned from point(Matcher), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      <T extends javafx.scene.Node> FxRobotInterface rightClickOn(org.hamcrest.Matcher<T> matcher, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Matcher), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      default <T extends javafx.scene.Node> FxRobotInterface rightClickOn(Predicate<T> predicate)
      Convenience method: Moves mouse directly to the point returned from point(Predicate), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • rightClickOn

      <T extends javafx.scene.Node> FxRobotInterface rightClickOn(Predicate<T> predicate, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Predicate), clicks the MouseButton.SECONDARY button, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(double x, double y, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(double, double), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(double, double), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Point2D), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Point2D), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Bounds), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Bounds), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Node), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Node), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Scene), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Scene), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Window), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Window), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default FxRobotInterface doubleClickOn(String query, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(String), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      FxRobotInterface doubleClickOn(String query, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(String), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default <T extends javafx.scene.Node> FxRobotInterface doubleClickOn(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Matcher), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      <T extends javafx.scene.Node> FxRobotInterface doubleClickOn(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Matcher), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      default <T extends javafx.scene.Node> FxRobotInterface doubleClickOn(Predicate<T> predicate, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse directly to the point returned from point(Predicate), double clicks the given buttons, and returns itself for method chaining.
    • doubleClickOn

      <T extends javafx.scene.Node> FxRobotInterface doubleClickOn(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Predicate), double clicks the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(javafx.scene.input.MouseButton... buttons)
      Calls DragRobot.drag(MouseButton...) and returns itself for more method chaining.
    • drag

      FxRobotInterface drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
      Calls DragRobot.drag(PointQuery, MouseButton...) and returns itself for more method chaining.
    • drop

      Calls DragRobot.drop() and returns itself for more method chaining.
    • dropTo

      FxRobotInterface dropTo(PointQuery pointQuery)
      Calls DragRobot.dropTo(PointQuery) and returns itself for more method chaining.
    • dropBy

      FxRobotInterface dropBy(double x, double y)
      Calls DragRobot.dropBy(double, double) and returns itself for more method chaining.
    • drag

      FxRobotInterface drag(double x, double y, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(double, double), presses the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Point2D), presses the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Bounds), presses the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Node), presses the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Scene), presses the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Window), presses the given buttons, and returns itself for method chaining.
    • drag

      FxRobotInterface drag(String query, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(String), presses the given buttons, and returns itself for method chaining.
    • drag

      <T extends javafx.scene.Node> FxRobotInterface drag(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Matcher), presses the given buttons, and returns itself for method chaining.
    • drag

      <T extends javafx.scene.Node> FxRobotInterface drag(Predicate<T> predicate, javafx.scene.input.MouseButton... buttons)
      Convenience method: Moves mouse to the point returned from point(Predicate), presses the given buttons, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(double x, double y)
      Convenience method: Moves mouse to the point returned from point(double, double), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(javafx.geometry.Point2D point)
      Convenience method: Moves mouse to the point returned from point(Point2D), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(javafx.geometry.Bounds bounds)
      Convenience method: Moves mouse to the point returned from point(Bounds), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(javafx.scene.Node node)
      Convenience method: Moves mouse to the point returned from point(Node), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(javafx.scene.Scene scene)
      Convenience method: Moves mouse to the point returned from point(Scene), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(javafx.stage.Window window)
      Convenience method: Moves mouse to the point returned from point(Window), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      FxRobotInterface dropTo(String query)
      Convenience method: Moves mouse to the point returned from point(String), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      <T extends javafx.scene.Node> FxRobotInterface dropTo(org.hamcrest.Matcher<T> matcher)
      Convenience method: Moves mouse to the point returned from point(Matcher), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • dropTo

      <T extends javafx.scene.Node> FxRobotInterface dropTo(Predicate<T> predicate)
      Convenience method: Moves mouse to the point returned from point(Predicate), releases the buttons that were pressed in drag(MouseButton...)- or press(MouseButton...)-related methods, and returns itself for method chaining.
    • press

      FxRobotInterface press(javafx.scene.input.KeyCode... keys)
      Calls KeyboardRobot.press(KeyCode...) and returns itself for method chaining.
    • release

      FxRobotInterface release(javafx.scene.input.KeyCode... keys)
      Calls KeyboardRobot.press(KeyCode...) and returns itself for method chaining.
    • press

      FxRobotInterface press(javafx.scene.input.MouseButton... buttons)
      Presses and holds mouse buttons.
      Parameters:
      buttons - mouse buttons to press, defaults to primary mouse button.
    • release

      FxRobotInterface release(javafx.scene.input.MouseButton... buttons)
      Releases pressed mouse buttons.
      Parameters:
      buttons - mouse buttons to release, defaults to all pressed mouse buttons.
    • moveTo

      default FxRobotInterface moveTo(PointQuery pointQuery)
      Calls MoveRobot.moveTo(PointQuery) and returns itself for more method chaining.
    • moveTo

      FxRobotInterface moveTo(PointQuery pointQuery, Motion motion)
      Calls MoveRobot.moveTo(PointQuery, Motion) and returns itself for more method chaining.
    • moveBy

      default FxRobotInterface moveBy(double x, double y)
      Calls MoveRobot.moveBy(double, double) and returns itself for more method chaining.
    • moveBy

      FxRobotInterface moveBy(double x, double y, Motion motion)
      Calls MoveRobot.moveBy(double, double, Motion) and returns itself for more method chaining.
    • moveTo

      default FxRobotInterface moveTo(double x, double y)
      Convenience method: Moves mouse directly to the point returned from point(double, double) and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(double x, double y, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(double, double) and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.geometry.Point2D point)
      Convenience method: Moves mouse directly to the point returned from point(Point2D) and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(javafx.geometry.Point2D point, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Point2D) and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.geometry.Bounds bounds)
      Convenience method: Moves mouse directly to the center of the given Bounds and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(javafx.geometry.Bounds bounds, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Bounds) and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.scene.Node node)
      Convenience method: Moves mouse directly to the center of the given Node and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.scene.Node node, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the center of the given Node and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.scene.Node node, javafx.geometry.Point2D offset)
      Convenience method: Moves mouse directly to the point returned from point(Node), with the given offset from the center of the given Node, and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, javafx.geometry.Point2D offset, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Node), with the given offset (from the offsetReferencePos, and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.scene.Scene scene)
      Convenience method: Moves mouse directly to the center of the given Scene and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(javafx.scene.Scene scene, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Scene) and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(javafx.stage.Window window)
      Convenience method: Moves mouse directly to the center of the given Window and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(javafx.stage.Window window, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Window) and returns itself for method chaining.
    • moveTo

      default FxRobotInterface moveTo(String query)
      Convenience method: Moves mouse directly to the point returned from point(String) and returns itself for method chaining.
    • moveTo

      FxRobotInterface moveTo(String query, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(String) and returns itself for method chaining.
    • moveTo

      default <T extends javafx.scene.Node> FxRobotInterface moveTo(org.hamcrest.Matcher<T> matcher)
      Convenience method: Moves mouse directly to the point returned from point(Matcher) and returns itself for method chaining.
    • moveTo

      <T extends javafx.scene.Node> FxRobotInterface moveTo(org.hamcrest.Matcher<T> matcher, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Matcher) and returns itself for method chaining.
    • moveTo

      default <T extends javafx.scene.Node> FxRobotInterface moveTo(Predicate<T> predicate)
      Convenience method: Moves mouse directly to the point returned from point(Predicate) and returns itself for method chaining.
    • moveTo

      <T extends javafx.scene.Node> FxRobotInterface moveTo(Predicate<T> predicate, Motion motion)
      Convenience method: Moves mouse using the given motion (see: Motion to the point returned from point(Predicate) and returns itself for method chaining.
    • scroll

      FxRobotInterface scroll(int amount)
      Calls ScrollRobot.scroll(int) and returns itself for more method chaining.
    • scroll

      FxRobotInterface scroll(int amount, javafx.geometry.VerticalDirection direction)
      Calls ScrollRobot.scroll(int, VerticalDirection) and returns itself for more method chaining.
    • scroll

      FxRobotInterface scroll(javafx.geometry.VerticalDirection direction)
      Calls ScrollRobot.scroll(int, VerticalDirection) with arguments 1 and direction and returns itself for more method chaining.
    • scroll

      FxRobotInterface scroll(int amount, javafx.geometry.HorizontalDirection direction)
      Calls ScrollRobot.scroll(int, HorizontalDirection) and returns itself for more method chaining.
    • scroll

      FxRobotInterface scroll(javafx.geometry.HorizontalDirection direction)
      Calls ScrollRobot.scroll(int, VerticalDirection) with arguments 1 and direction and returns itself for more method chaining.
    • push

      FxRobotInterface push(javafx.scene.input.KeyCode... combination)
      Calls TypeRobot.push(KeyCode...) and returns itself for more method chaining.
    • push

      FxRobotInterface push(javafx.scene.input.KeyCodeCombination combination)
      Calls TypeRobot.push(KeyCodeCombination) and returns itself for more method chaining.
    • type

      FxRobotInterface type(javafx.scene.input.KeyCode... keys)
      Calls TypeRobot.type(KeyCode...) and returns itself for more method chaining.
    • type

      FxRobotInterface type(javafx.scene.input.KeyCode key, int times)
      Calls TypeRobot.type(KeyCode, int) and returns itself for more method chaining.
    • eraseText

      FxRobotInterface eraseText(int characters)
      Convenience method: Calls TypeRobot.type(KeyCode, int) with KeyCode.BACK_SPACE and returns itself for more method chaining.
    • write

      FxRobotInterface write(char character)
      Calls WriteRobot.write(char) and returns itself for more method chaining.
    • write

      FxRobotInterface write(String text)
      Calls WriteRobot.write(String) and returns itself for more method chaining.
    • write

      FxRobotInterface write(String text, int sleepMillis)
      Calls WriteRobot.write(String, int) and returns itself for more method chaining.