@Unstable(reason="class was recently added") public class FxRobot extends Object implements FxRobotInterface
Constructor and Description |
---|
FxRobot()
Constructs all robot-related implementations and sets
targetPos(Pos) to Pos.CENTER . |
Modifier and Type | Method and Description |
---|---|
BoundsQuery |
bounds(Bounds bounds)
Creates a
BoundsQuery that returns the given bounds |
BoundsQuery |
bounds(double minX,
double minY,
double width,
double height)
|
<T extends Node> |
bounds(org.hamcrest.Matcher<T> matcher)
NOT YET IMPLEMENTED
|
BoundsQuery |
bounds(Node node)
|
BoundsQuery |
bounds(Point2D point)
|
<T extends Node> |
bounds(Predicate<T> predicate)
NOT YET IMPLEMENTED
|
BoundsQuery |
bounds(Scene scene)
Calls
BoundsQueryUtils.boundsOnScreen(Bounds, Scene) with given scene's bounds |
BoundsQuery |
bounds(String query)
NOT YET IMPLEMENTED
|
BoundsQuery |
bounds(Window window)
Calls
BoundsQueryUtils.boundsOnScreen(Bounds, Window) with the given window's bounds |
Capture |
capture(Bounds bounds)
Returns a
Capture that supplies a screenshot using the given bounds. |
Capture |
capture(Image image)
|
Capture |
capture(Node node)
Returns a
Capture that supplies a screenshot using the given node's bounds. |
Capture |
capture(Path path)
|
Capture |
capture(Rectangle2D screenRegion)
Returns a
Capture that supplies a screenshot using the given rectangle's bounds. |
Capture |
capture(URL url)
|
FxRobot |
clickOn(Bounds bounds,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned
from FxRobotInterface.point(Bounds) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
clickOn(double x,
double y,
Motion motion,
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. |
<T extends Node> |
clickOn(org.hamcrest.Matcher<T> matcher,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Matcher) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
clickOn(MouseButton... buttons)
Calls
ClickRobot.clickOn(MouseButton...) and returns itself for more method chaining. |
FxRobot |
clickOn(Node node,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Node) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
clickOn(Point2D point,
Motion motion,
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. |
FxRobot |
clickOn(PointQuery pointQuery,
Motion motion,
MouseButton... buttons)
Calls
ClickRobot.clickOn(PointQuery, MouseButton...) and returns itself for more method
chaining. |
<T extends Node> |
clickOn(Predicate<T> predicate,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Predicate) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
clickOn(Scene scene,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Scene) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
clickOn(String query,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(String) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
clickOn(Window window,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Window) , clicks the given buttons, and returns itself for method chaining. |
FxRobot |
closeCurrentWindow() |
FxRobot |
doubleClickOn(Bounds bounds,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Bounds) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(double x,
double y,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(double, double) , double clicks the given buttons, and returns itself for method chaining. |
<T extends Node> |
doubleClickOn(org.hamcrest.Matcher<T> matcher,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Matcher) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(MouseButton... buttons)
Calls
ClickRobot.doubleClickOn(MouseButton...) and returns itself for more method
chaining. |
FxRobot |
doubleClickOn(Node node,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Node) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(Point2D point,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Point2D) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(PointQuery pointQuery,
Motion motion,
MouseButton... buttons)
Calls
ClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...) and returns itself
for method chaining. |
<T extends Node> |
doubleClickOn(Predicate<T> predicate,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Predicate) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(Scene scene,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Scene) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(String query,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(String) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
doubleClickOn(Window window,
Motion motion,
MouseButton... buttons)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Window) , double clicks the given buttons, and returns itself for method chaining. |
FxRobot |
drag(Bounds bounds,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Bounds) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(double x,
double y,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(double, double) , presses the given
buttons, and returns itself for method chaining. |
<T extends Node> |
drag(org.hamcrest.Matcher<T> matcher,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Matcher) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(MouseButton... buttons)
Calls
DragRobot.drag(MouseButton...) and returns itself for more method chaining. |
FxRobot |
drag(Node node,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Node) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(Point2D point,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Point2D) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(PointQuery pointQuery,
MouseButton... buttons)
Calls
DragRobot.drag(PointQuery, MouseButton...) and returns itself for more method
chaining. |
<T extends Node> |
drag(Predicate<T> predicate,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Predicate) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(Scene scene,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Scene) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(String query,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(String) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drag(Window window,
MouseButton... buttons)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Window) , presses the given
buttons, and returns itself for method chaining. |
FxRobot |
drop()
Calls
DragRobot.drop() and returns itself for more method chaining. |
FxRobot |
dropBy(double x,
double y)
Calls
DragRobot.dropBy(double, double) and returns itself for more method chaining. |
FxRobot |
dropTo(Bounds bounds)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Bounds) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(double x,
double y)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(double, double) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
<T extends Node> |
dropTo(org.hamcrest.Matcher<T> matcher)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Matcher) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(Node node)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Node) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(Point2D point)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Point2D) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(PointQuery pointQuery)
Calls
DragRobot.dropTo(PointQuery) and returns itself for more method chaining. |
<T extends Node> |
dropTo(Predicate<T> predicate)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Predicate) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(Scene scene)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Scene) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(String query)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(String) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
dropTo(Window window)
Convenience method: Moves mouse to the point returned from
FxRobotInterface.point(Window) , releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...) - or FxRobotInterface.press(MouseButton...) -related methods,
and returns itself for method chaining. |
FxRobot |
eraseText(int amount)
Convenience method: Calls
TypeRobot.type(KeyCode, int) with KeyCode.BACK_SPACE
and returns itself for more method chaining. |
NodeQuery |
from(Collection<Node> parentNodes)
Calls
NodeFinder.from(Collection) and returns itself for method chaining. |
NodeQuery |
from(Node... parentNodes)
Calls
NodeFinder.from(Node...) and returns itself for method chaining. |
NodeQuery |
from(NodeQuery nodeQuery)
Convenience method: Calls
NodeFinder.from(NodeQuery) and returns itself for method chaining. |
NodeQuery |
fromAll()
Calls
NodeFinder.fromAll() and returns itself for method chaining. |
<T> FxRobot |
interact(Callable<T> callable)
Calls a callable on the FX application thread and waits for it and
consecutive events to execute.
|
FxRobot |
interact(Runnable runnable)
Calls a runnable on the FX application thread and waits for it and
consecutive events to execute.
|
<T> FxRobot |
interactNoWait(Callable<T> callable)
Calls a callable on the FX application thread and waits for it to
execute.
|
FxRobot |
interactNoWait(Runnable runnable)
Calls a runnable on the FX application thread and waits for it to
execute.
|
FxRobot |
interrupt()
Calls
WaitForAsyncUtils.waitForFxEvents() and returns itself for method chaining. |
FxRobot |
interrupt(int attemptsCount)
Calls
WaitForAsyncUtils.waitForFxEvents(int) and returns itself for method chaining. |
List<Window> |
listTargetWindows()
Calls
WindowFinder.listTargetWindows() and returns itself for method chaining. |
List<Window> |
listWindows()
Calls
WindowFinder.listWindows() ()} and returns itself for method chaining. |
<T extends Node> |
lookup(org.hamcrest.Matcher<T> matcher)
Convenience method: Calls
NodeFinder.lookup(Matcher) and returns itself for method chaining. |
<T extends Node> |
lookup(Predicate<T> predicate)
Convenience method: Calls
NodeFinder.lookup(Predicate) and returns itself for method chaining. |
NodeQuery |
lookup(String query)
Convenience method: Calls
NodeFinder.lookup(String) and returns itself for method chaining. |
FxRobot |
moveBy(double x,
double y,
Motion motion)
Calls
MoveRobot.moveBy(double, double, Motion) and returns itself for more method
chaining. |
FxRobot |
moveTo(Bounds bounds,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Bounds) and returns itself for method chaining. |
FxRobot |
moveTo(double x,
double y,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(double, double) and returns itself for method chaining. |
<T extends Node> |
moveTo(org.hamcrest.Matcher<T> matcher,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Matcher) and returns itself for method chaining. |
FxRobot |
moveTo(Node node,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Node) and returns itself for method chaining. |
FxRobot |
moveTo(Point2D point,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Point2D) and returns itself for method chaining. |
FxRobot |
moveTo(PointQuery pointQuery,
Motion motion)
Calls
MoveRobot.moveTo(PointQuery, Motion) and returns itself for more method chaining. |
<T extends Node> |
moveTo(Predicate<T> predicate,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Predicate) and returns itself for method chaining. |
FxRobot |
moveTo(Scene scene,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Scene) and returns itself for method chaining. |
FxRobot |
moveTo(String query,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(String) and returns itself for method chaining. |
FxRobot |
moveTo(Window window,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Window) and returns itself for method chaining. |
PointQuery |
offset(Bounds bounds,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Bounds) and sets the query's offset by the given offset values. |
<T extends Node> |
offset(org.hamcrest.Matcher<T> matcher,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Matcher) and sets the query's offset by the given offset values. |
PointQuery |
offset(Node node,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Node) and sets the query's offset by the given offset values. |
PointQuery |
offset(Point2D point,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Point2D) and sets the query's offset by the given offset values. |
<T extends Node> |
offset(Predicate<T> predicate,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Predicate) and sets the query's offset by the given offset values. |
PointQuery |
offset(Scene scene,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Scene) and sets the query's offset by the given offset values. |
PointQuery |
offset(String query,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(String) and sets the query's offset by the given offset values. |
PointQuery |
offset(Window window,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Window) and sets the query's offset by the given offset values. |
PointQuery |
point(Bounds bounds)
Calls
PointLocator.point(Bounds) and sets the PointQuery 's
PointQuery.getPosition() to FxRobotContext.getPointPosition() . |
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() . |
<T extends Node> |
point(org.hamcrest.Matcher<T> matcher)
Convenience method: Tries to find a given node via
FxRobotInterface.lookup(Matcher) before calling FxRobotInterface.point(Node) ,
throwing a FxRobotException if no node is found. |
PointQuery |
point(Node node)
Calls
PointLocator.point(Node) and sets the PointQuery 's
PointQuery.getPosition() to FxRobotContext.getPointPosition() . |
PointQuery |
point(Point2D point)
Calls
PointLocator.point(Point2D) and sets the PointQuery 's
PointQuery.getPosition() to FxRobotContext.getPointPosition() . |
<T extends Node> |
point(Predicate<T> predicate)
Convenience method: Tries to find a given node via
FxRobotInterface.lookup(Predicate) before calling
FxRobotInterface.point(Node) , throwing a FxRobotException if no node is found. |
PointQuery |
point(Scene scene)
Calls
PointLocator.point(Scene) and sets the PointQuery 's
PointQuery.getPosition() to FxRobotContext.getPointPosition() . |
PointQuery |
point(String query)
Convenience method: Tries to find a given node via
FxRobotInterface.lookup(String) before calling FxRobotInterface.point(Node) ,
throwing a FxRobotException if no node is found. |
PointQuery |
point(Window window)
Calls
PointLocator.point(Window) and sets the PointQuery 's
PointQuery.getPosition() to FxRobotContext.getPointPosition() . |
FxRobot |
press(KeyCode... keys)
Calls
KeyboardRobot.press(KeyCode...) and returns itself for method chaining. |
FxRobot |
press(MouseButton... buttons)
Presses and holds mouse buttons.
|
FxRobot |
push(KeyCode... combination)
Calls
TypeRobot.push(KeyCode...) and returns itself for more method chaining. |
FxRobot |
push(KeyCodeCombination combination)
Calls
TypeRobot.push(KeyCodeCombination) and returns itself for more method chaining. |
FxRobot |
release(KeyCode... keys)
Calls
KeyboardRobot.press(KeyCode...) and returns itself for method chaining. |
FxRobot |
release(MouseButton... buttons)
Releases pressed mouse buttons.
|
FxRobot |
rightClickOn()
Convenience method: Clicks the
MouseButton.SECONDARY button and returns itself for method chaining. |
FxRobot |
rightClickOn(Bounds bounds,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Bounds) , clicks the MouseButton.SECONDARY button, and returns itself for method chaining. |
FxRobot |
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. |
<T extends Node> |
rightClickOn(org.hamcrest.Matcher<T> matcher,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Matcher) , clicks the MouseButton.SECONDARY button, and returns itself for method
chaining. |
FxRobot |
rightClickOn(Node node,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Node) , clicks the MouseButton.SECONDARY button, and returns itself for method chaining. |
FxRobot |
rightClickOn(Point2D point,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Point2D) , clicks the MouseButton.SECONDARY button, and returns itself for method
chaining. |
FxRobot |
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. |
<T extends Node> |
rightClickOn(Predicate<T> predicate,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Predicate) , clicks the MouseButton.SECONDARY button, and returns itself for method
chaining. |
FxRobot |
rightClickOn(Scene scene,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Scene) , clicks the MouseButton.SECONDARY button, and returns itself for method chaining. |
FxRobot |
rightClickOn(String query,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(String) , clicks the MouseButton.SECONDARY button, and returns itself for method chaining. |
FxRobot |
rightClickOn(Window window,
Motion motion)
Convenience method: Moves mouse using the given
motion (see: Motion to the point returned from
FxRobotInterface.point(Window) , clicks the MouseButton.SECONDARY button, and returns itself for method chaining. |
FxRobotContext |
robotContext()
Returns the internal context.
|
Node |
rootNode(Node node)
Calls
NodeFinder.rootNode(Node) and returns itself for method chaining. |
Node |
rootNode(Scene scene)
Calls
NodeFinder.rootNode(Scene) and returns itself for method chaining. |
Node |
rootNode(Window window)
Calls
NodeFinder.rootNode(Window) and returns itself for method chaining. |
FxRobot |
scroll(HorizontalDirection direction)
Calls
ScrollRobot.scroll(int, VerticalDirection) with arguments 1 and
direction and returns itself for more method chaining. |
FxRobot |
scroll(int amount)
Deprecated.
|
FxRobot |
scroll(int amount,
HorizontalDirection direction)
Calls
ScrollRobot.scroll(int, HorizontalDirection) and returns itself for more method
chaining. |
FxRobot |
scroll(int amount,
VerticalDirection direction)
Calls
ScrollRobot.scroll(int, VerticalDirection) and returns itself for more method
chaining. |
FxRobot |
scroll(VerticalDirection direction)
Calls
ScrollRobot.scroll(int, VerticalDirection) with arguments 1 and
direction and returns itself for more method chaining. |
FxRobot |
sleep(long milliseconds)
Calls
SleepRobot.sleep(long) and returns itself for more method chaining. |
FxRobot |
sleep(long duration,
TimeUnit timeUnit)
Calls
SleepRobot.sleep(long, TimeUnit) and returns itself for more method chaining. |
FxRobot |
targetPos(Pos pointPosition)
Stores the given position as the position to be used in all
point() -related methods
such as FxRobotInterface.point(Node) and FxRobotInterface.point(Point2D) , and returns itself for method chaining. |
Window |
targetWindow()
Calls
WindowFinder.targetWindow() and returns itself for method chaining. |
FxRobot |
targetWindow(int windowNumber)
Convenience method: Calls
WindowFinder.targetWindow(int) and returns itself for method chaining. |
FxRobot |
targetWindow(Node node)
Convenience method: Calls
WindowFinder.targetWindow(Node) and returns itself for method chaining. |
FxRobot |
targetWindow(Pattern stageTitlePattern)
Convenience method: Calls
WindowFinder.targetWindow(Pattern) and returns itself for method chaining. |
FxRobot |
targetWindow(Predicate<Window> predicate)
Calls
WindowFinder.targetWindow(Predicate) and returns itself for method chaining. |
FxRobot |
targetWindow(Scene scene)
Convenience method: Calls
WindowFinder.targetWindow(Scene) and returns itself for method chaining. |
FxRobot |
targetWindow(String stageTitleRegex)
Convenience method: Calls
WindowFinder.targetWindow(String) and returns itself for method chaining. |
FxRobot |
targetWindow(Window window)
Calls
WindowFinder.targetWindow(Window) and returns itself for method chaining. |
FxRobot |
type(KeyCode... keyCodes)
Calls
TypeRobot.type(KeyCode...) and returns itself for more method chaining. |
FxRobot |
type(KeyCode keyCode,
int times)
Calls
TypeRobot.type(KeyCode, int) and returns itself for more method chaining. |
Window |
window(int windowIndex)
Convenience method: Calls
WindowFinder.window(int) and returns itself for method chaining. |
Window |
window(Node node)
Convenience method: Calls
WindowFinder.window(Node) and returns itself for method chaining. |
Window |
window(Pattern stageTitlePattern)
Convenience method: Calls
WindowFinder.window(Pattern) and returns itself for method chaining. |
Window |
window(Predicate<Window> predicate)
Calls
WindowFinder.window(Predicate) and returns itself for method chaining. |
Window |
window(Scene scene)
Convenience method: Calls
WindowFinder.window(Scene) and returns itself for method chaining. |
Window |
window(String stageTitleRegex)
Convenience method: Calls
WindowFinder.window(String) and returns itself for method chaining. |
FxRobot |
write(char character)
Calls
WriteRobot.write(char) and returns itself for more method chaining. |
FxRobot |
write(String text)
Calls
WriteRobot.write(String) and returns itself for more method chaining. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn, rightClickOn
public FxRobot()
targetPos(Pos)
to Pos.CENTER
.public FxRobotContext robotContext()
public Window targetWindow()
FxRobotInterface
WindowFinder.targetWindow()
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(Window window)
FxRobotInterface
WindowFinder.targetWindow(Window)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(Predicate<Window> predicate)
FxRobotInterface
WindowFinder.targetWindow(Predicate)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(int windowNumber)
FxRobotInterface
WindowFinder.targetWindow(int)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(String stageTitleRegex)
FxRobotInterface
WindowFinder.targetWindow(String)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(Pattern stageTitlePattern)
FxRobotInterface
WindowFinder.targetWindow(Pattern)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(Scene scene)
FxRobotInterface
WindowFinder.targetWindow(Scene)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public FxRobot targetWindow(Node node)
FxRobotInterface
WindowFinder.targetWindow(Node)
and returns itself for method chaining.targetWindow
in interface FxRobotInterface
public List<Window> listWindows()
FxRobotInterface
WindowFinder.listWindows()
()} and returns itself for method chaining.listWindows
in interface FxRobotInterface
public List<Window> listTargetWindows()
FxRobotInterface
WindowFinder.listTargetWindows()
and returns itself for method chaining.listTargetWindows
in interface FxRobotInterface
public Window window(Predicate<Window> predicate)
FxRobotInterface
WindowFinder.window(Predicate)
and returns itself for method chaining.window
in interface FxRobotInterface
public Window window(int windowIndex)
FxRobotInterface
WindowFinder.window(int)
and returns itself for method chaining.window
in interface FxRobotInterface
public Window window(String stageTitleRegex)
FxRobotInterface
WindowFinder.window(String)
and returns itself for method chaining.window
in interface FxRobotInterface
public Window window(Pattern stageTitlePattern)
FxRobotInterface
WindowFinder.window(Pattern)
and returns itself for method chaining.window
in interface FxRobotInterface
public Window window(Scene scene)
FxRobotInterface
WindowFinder.window(Scene)
and returns itself for method chaining.window
in interface FxRobotInterface
public Window window(Node node)
FxRobotInterface
WindowFinder.window(Node)
and returns itself for method chaining.window
in interface FxRobotInterface
public NodeQuery fromAll()
FxRobotInterface
NodeFinder.fromAll()
and returns itself for method chaining.fromAll
in interface FxRobotInterface
public NodeQuery from(Node... parentNodes)
FxRobotInterface
NodeFinder.from(Node...)
and returns itself for method chaining.from
in interface FxRobotInterface
public NodeQuery from(Collection<Node> parentNodes)
FxRobotInterface
NodeFinder.from(Collection)
and returns itself for method chaining.from
in interface FxRobotInterface
public NodeQuery from(NodeQuery nodeQuery)
FxRobotInterface
NodeFinder.from(NodeQuery)
and returns itself for method chaining.from
in interface FxRobotInterface
public NodeQuery lookup(String query)
FxRobotInterface
NodeFinder.lookup(String)
and returns itself for method chaining.lookup
in interface FxRobotInterface
public <T extends Node> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
FxRobotInterface
NodeFinder.lookup(Matcher)
and returns itself for method chaining.lookup
in interface FxRobotInterface
public <T extends Node> NodeQuery lookup(Predicate<T> predicate)
FxRobotInterface
NodeFinder.lookup(Predicate)
and returns itself for method chaining.lookup
in interface FxRobotInterface
public Node rootNode(Window window)
FxRobotInterface
NodeFinder.rootNode(Window)
and returns itself for method chaining.rootNode
in interface FxRobotInterface
public Node rootNode(Scene scene)
FxRobotInterface
NodeFinder.rootNode(Scene)
and returns itself for method chaining.rootNode
in interface FxRobotInterface
public Node rootNode(Node node)
FxRobotInterface
NodeFinder.rootNode(Node)
and returns itself for method chaining.rootNode
in interface FxRobotInterface
public BoundsQuery bounds(double minX, double minY, double width, double height)
FxRobotInterface
bounds
in interface FxRobotInterface
public BoundsQuery bounds(Point2D point)
FxRobotInterface
bounds
in interface FxRobotInterface
public BoundsQuery bounds(Bounds bounds)
FxRobotInterface
BoundsQuery
that returns the given boundsbounds
in interface FxRobotInterface
public BoundsQuery bounds(Node node)
FxRobotInterface
bounds
in interface FxRobotInterface
public BoundsQuery bounds(Scene scene)
FxRobotInterface
BoundsQueryUtils.boundsOnScreen(Bounds, Scene)
with given scene's boundsbounds
in interface FxRobotInterface
public BoundsQuery bounds(Window window)
FxRobotInterface
BoundsQueryUtils.boundsOnScreen(Bounds, Window)
with the given window's boundsbounds
in interface FxRobotInterface
@Unstable(reason="not yet implemented") public BoundsQuery bounds(String query)
FxRobotInterface
bounds
in interface FxRobotInterface
@Unstable(reason="not yet implemented") public <T extends Node> BoundsQuery bounds(org.hamcrest.Matcher<T> matcher)
FxRobotInterface
bounds
in interface FxRobotInterface
@Unstable(reason="not yet implemented") public <T extends Node> BoundsQuery bounds(Predicate<T> predicate)
FxRobotInterface
bounds
in interface FxRobotInterface
public FxRobot targetPos(Pos pointPosition)
FxRobotInterface
point()
-related methods
such as FxRobotInterface.point(Node)
and FxRobotInterface.point(Point2D)
, and returns itself for method chaining.
The default value is Pos.CENTER
targetPos
in interface FxRobotInterface
public PointQuery point(double x, double y)
FxRobotInterface
PointLocator.point(Point2D)
using new Point2D(x, y)
and sets
the PointQuery
's PointQuery.getPosition()
to FxRobotContext.getPointPosition()
.point
in interface FxRobotInterface
public PointQuery point(Point2D point)
FxRobotInterface
PointLocator.point(Point2D)
and sets the PointQuery
's
PointQuery.getPosition()
to FxRobotContext.getPointPosition()
.point
in interface FxRobotInterface
public PointQuery point(Bounds bounds)
FxRobotInterface
PointLocator.point(Bounds)
and sets the PointQuery
's
PointQuery.getPosition()
to FxRobotContext.getPointPosition()
.point
in interface FxRobotInterface
public PointQuery point(Node node)
FxRobotInterface
PointLocator.point(Node)
and sets the PointQuery
's
PointQuery.getPosition()
to FxRobotContext.getPointPosition()
.point
in interface FxRobotInterface
public PointQuery point(Scene scene)
FxRobotInterface
PointLocator.point(Scene)
and sets the PointQuery
's
PointQuery.getPosition()
to FxRobotContext.getPointPosition()
.point
in interface FxRobotInterface
public PointQuery point(Window window)
FxRobotInterface
PointLocator.point(Window)
and sets the PointQuery
's
PointQuery.getPosition()
to FxRobotContext.getPointPosition()
.point
in interface FxRobotInterface
public PointQuery point(String query)
FxRobotInterface
FxRobotInterface.lookup(String)
before calling FxRobotInterface.point(Node)
,
throwing a FxRobotException
if no node is found.point
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> PointQuery point(org.hamcrest.Matcher<T> matcher)
FxRobotInterface
FxRobotInterface.lookup(Matcher)
before calling FxRobotInterface.point(Node)
,
throwing a FxRobotException
if no node is found.point
in interface FxRobotInterface
public <T extends Node> PointQuery point(Predicate<T> predicate)
FxRobotInterface
FxRobotInterface.lookup(Predicate)
before calling
FxRobotInterface.point(Node)
, throwing a FxRobotException
if no node is found.point
in interface FxRobotInterface
public PointQuery offset(Point2D point, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Point2D)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public PointQuery offset(Bounds bounds, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Bounds)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public PointQuery offset(Node node, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Node)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public PointQuery offset(Scene scene, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Scene)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public PointQuery offset(Window window, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Window)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public PointQuery offset(String query, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(String)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> PointQuery offset(org.hamcrest.Matcher<T> matcher, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Matcher)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public <T extends Node> PointQuery offset(Predicate<T> predicate, double offsetX, double offsetY)
FxRobotInterface
FxRobotInterface.point(Predicate)
and sets the query's offset by the given offset values.offset
in interface FxRobotInterface
public Capture capture(Rectangle2D screenRegion)
FxRobotInterface
Capture
that supplies a screenshot using the given rectangle's bounds.capture
in interface FxRobotInterface
public Capture capture(Bounds bounds)
FxRobotInterface
Capture
that supplies a screenshot using the given bounds.capture
in interface FxRobotInterface
public Capture capture(Node node)
FxRobotInterface
Capture
that supplies a screenshot using the given node's bounds.capture
in interface FxRobotInterface
public Capture capture(Image image)
FxRobotInterface
capture
in interface FxRobotInterface
public Capture capture(Path path)
FxRobotInterface
Capture
that supplies the Image
from the image file of the
given Path
.capture
in interface FxRobotInterface
public Capture capture(URL url)
FxRobotInterface
capture
in interface FxRobotInterface
public FxRobot interact(Runnable runnable)
FxRobotInterface
interact
in interface FxRobotInterface
runnable
- the runnablepublic <T> FxRobot interact(Callable<T> callable)
FxRobotInterface
interact
in interface FxRobotInterface
callable
- the callablepublic FxRobot interactNoWait(Runnable runnable)
FxRobotInterface
interactNoWait
in interface FxRobotInterface
runnable
- the runnablepublic <T> FxRobot interactNoWait(Callable<T> callable)
FxRobotInterface
interactNoWait
in interface FxRobotInterface
callable
- the callablepublic FxRobot interrupt()
FxRobotInterface
WaitForAsyncUtils.waitForFxEvents()
and returns itself for method chaining.interrupt
in interface FxRobotInterface
public FxRobot interrupt(int attemptsCount)
FxRobotInterface
WaitForAsyncUtils.waitForFxEvents(int)
and returns itself for method chaining.interrupt
in interface FxRobotInterface
public FxRobot push(KeyCode... combination)
FxRobotInterface
TypeRobot.push(KeyCode...)
and returns itself for more method chaining.push
in interface FxRobotInterface
public FxRobot push(KeyCodeCombination combination)
FxRobotInterface
TypeRobot.push(KeyCodeCombination)
and returns itself for more method chaining.push
in interface FxRobotInterface
public FxRobot type(KeyCode... keyCodes)
FxRobotInterface
TypeRobot.type(KeyCode...)
and returns itself for more method chaining.type
in interface FxRobotInterface
public FxRobot type(KeyCode keyCode, int times)
FxRobotInterface
TypeRobot.type(KeyCode, int)
and returns itself for more method chaining.type
in interface FxRobotInterface
public FxRobot eraseText(int amount)
FxRobotInterface
TypeRobot.type(KeyCode, int)
with KeyCode.BACK_SPACE
and returns itself for more method chaining.eraseText
in interface FxRobotInterface
@Unstable(reason="maybe extract this into a new class") public FxRobot closeCurrentWindow()
public FxRobot write(char character)
FxRobotInterface
WriteRobot.write(char)
and returns itself for more method chaining.write
in interface FxRobotInterface
public FxRobot write(String text)
FxRobotInterface
WriteRobot.write(String)
and returns itself for more method chaining.write
in interface FxRobotInterface
public FxRobot sleep(long milliseconds)
FxRobotInterface
SleepRobot.sleep(long)
and returns itself for more method chaining.sleep
in interface FxRobotInterface
public FxRobot sleep(long duration, TimeUnit timeUnit)
FxRobotInterface
SleepRobot.sleep(long, TimeUnit)
and returns itself for more method chaining.sleep
in interface FxRobotInterface
@Deprecated public FxRobot scroll(int amount)
FxRobotInterface
ScrollRobot.scroll(int)
and returns itself for more method chaining.scroll
in interface FxRobotInterface
public FxRobot scroll(int amount, VerticalDirection direction)
FxRobotInterface
ScrollRobot.scroll(int, VerticalDirection)
and returns itself for more method
chaining.scroll
in interface FxRobotInterface
public FxRobot scroll(VerticalDirection direction)
FxRobotInterface
ScrollRobot.scroll(int, VerticalDirection)
with arguments 1
and
direction
and returns itself for more method chaining.scroll
in interface FxRobotInterface
public FxRobot scroll(int amount, HorizontalDirection direction)
FxRobotInterface
ScrollRobot.scroll(int, HorizontalDirection)
and returns itself for more method
chaining.scroll
in interface FxRobotInterface
public FxRobot scroll(HorizontalDirection direction)
FxRobotInterface
ScrollRobot.scroll(int, VerticalDirection)
with arguments 1
and
direction
and returns itself for more method chaining.scroll
in interface FxRobotInterface
@Unstable(reason="could be renamed to accept empty arrays") public FxRobot press(KeyCode... keys)
FxRobotInterface
KeyboardRobot.press(KeyCode...)
and returns itself for method chaining.press
in interface FxRobotInterface
@Unstable(reason="could be renamed to accept empty arrays") public FxRobot release(KeyCode... keys)
FxRobotInterface
KeyboardRobot.press(KeyCode...)
and returns itself for method chaining.release
in interface FxRobotInterface
@Unstable(reason="could be renamed to accept empty arrays") public FxRobot press(MouseButton... buttons)
FxRobotInterface
press
in interface FxRobotInterface
buttons
- mouse buttons to press, defaults to primary mouse button.@Unstable(reason="could be renamed to accept empty arrays") public FxRobot release(MouseButton... buttons)
FxRobotInterface
release
in interface FxRobotInterface
buttons
- mouse buttons to release, defaults to all pressed mouse buttons.public FxRobot clickOn(MouseButton... buttons)
FxRobotInterface
ClickRobot.clickOn(MouseButton...)
and returns itself for more method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(PointQuery pointQuery, Motion motion, MouseButton... buttons)
FxRobotInterface
ClickRobot.clickOn(PointQuery, MouseButton...)
and returns itself for more method
chaining.clickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(MouseButton... buttons)
FxRobotInterface
ClickRobot.doubleClickOn(MouseButton...)
and returns itself for more method
chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(PointQuery pointQuery, Motion motion, MouseButton... buttons)
FxRobotInterface
ClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...)
and returns itself
for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot clickOn(double x, double y, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the given coordinates,
clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(Point2D point, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the given point, clicks
the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(Bounds bounds, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned
from FxRobotInterface.point(Bounds)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(Node node, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Node)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(Scene scene, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Scene)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(Window window, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Window)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot clickOn(String query, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(String)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> FxRobot clickOn(org.hamcrest.Matcher<T> matcher, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Matcher)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public <T extends Node> FxRobot clickOn(Predicate<T> predicate, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Predicate)
, clicks the given buttons, and returns itself for method chaining.clickOn
in interface FxRobotInterface
public FxRobot rightClickOn()
FxRobotInterface
MouseButton.SECONDARY
button and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(PointQuery pointQuery, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
PointQuery.query()
, clicks the MouseButton.SECONDARY
button and returns itself for method
chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(double x, double y, Motion motion)
FxRobotInterface
motion
(see: Motion
to the given coordinates,
clicks the MouseButton.SECONDARY
button, and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(Point2D point, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Point2D)
, clicks the MouseButton.SECONDARY
button, and returns itself for method
chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(Bounds bounds, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Bounds)
, clicks the MouseButton.SECONDARY
button, and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(Node node, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Node)
, clicks the MouseButton.SECONDARY
button, and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(Scene scene, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Scene)
, clicks the MouseButton.SECONDARY
button, and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(Window window, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Window)
, clicks the MouseButton.SECONDARY
button, and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
public FxRobot rightClickOn(String query, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(String)
, clicks the MouseButton.SECONDARY
button, and returns itself for method chaining.rightClickOn
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> FxRobot rightClickOn(org.hamcrest.Matcher<T> matcher, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Matcher)
, clicks the MouseButton.SECONDARY
button, and returns itself for method
chaining.rightClickOn
in interface FxRobotInterface
public <T extends Node> FxRobot rightClickOn(Predicate<T> predicate, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Predicate)
, clicks the MouseButton.SECONDARY
button, and returns itself for method
chaining.rightClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(double x, double y, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(double, double)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(Point2D point, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Point2D)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(Bounds bounds, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Bounds)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(Node node, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Node)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(Scene scene, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Scene)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(Window window, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Window)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot doubleClickOn(String query, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(String)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public <T extends Node> FxRobot doubleClickOn(org.hamcrest.Matcher<T> matcher, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Matcher)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public <T extends Node> FxRobot doubleClickOn(Predicate<T> predicate, Motion motion, MouseButton... buttons)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Predicate)
, double clicks the given buttons, and returns itself for method chaining.doubleClickOn
in interface FxRobotInterface
public FxRobot drag(MouseButton... buttons)
FxRobotInterface
DragRobot.drag(MouseButton...)
and returns itself for more method chaining.drag
in interface FxRobotInterface
public FxRobot drag(PointQuery pointQuery, MouseButton... buttons)
FxRobotInterface
DragRobot.drag(PointQuery, MouseButton...)
and returns itself for more method
chaining.drag
in interface FxRobotInterface
public FxRobot drop()
FxRobotInterface
DragRobot.drop()
and returns itself for more method chaining.drop
in interface FxRobotInterface
public FxRobot dropTo(PointQuery pointQuery)
FxRobotInterface
DragRobot.dropTo(PointQuery)
and returns itself for more method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropBy(double x, double y)
FxRobotInterface
DragRobot.dropBy(double, double)
and returns itself for more method chaining.dropBy
in interface FxRobotInterface
public FxRobot drag(double x, double y, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(double, double)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot drag(Point2D point, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Point2D)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot drag(Bounds bounds, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Bounds)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot drag(Node node, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Node)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot drag(Scene scene, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Scene)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot drag(Window window, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Window)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot drag(String query, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(String)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> FxRobot drag(org.hamcrest.Matcher<T> matcher, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Matcher)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public <T extends Node> FxRobot drag(Predicate<T> predicate, MouseButton... buttons)
FxRobotInterface
FxRobotInterface.point(Predicate)
, presses the given
buttons, and returns itself for method chaining.drag
in interface FxRobotInterface
public FxRobot dropTo(double x, double y)
FxRobotInterface
FxRobotInterface.point(double, double)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropTo(Point2D point)
FxRobotInterface
FxRobotInterface.point(Point2D)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropTo(Bounds bounds)
FxRobotInterface
FxRobotInterface.point(Bounds)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropTo(Node node)
FxRobotInterface
FxRobotInterface.point(Node)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropTo(Scene scene)
FxRobotInterface
FxRobotInterface.point(Scene)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropTo(Window window)
FxRobotInterface
FxRobotInterface.point(Window)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot dropTo(String query)
FxRobotInterface
FxRobotInterface.point(String)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> FxRobot dropTo(org.hamcrest.Matcher<T> matcher)
FxRobotInterface
FxRobotInterface.point(Matcher)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public <T extends Node> FxRobot dropTo(Predicate<T> predicate)
FxRobotInterface
FxRobotInterface.point(Predicate)
, releases the buttons
that were pressed in FxRobotInterface.drag(MouseButton...)
- or FxRobotInterface.press(MouseButton...)
-related methods,
and returns itself for method chaining.dropTo
in interface FxRobotInterface
public FxRobot moveTo(PointQuery pointQuery, Motion motion)
FxRobotInterface
MoveRobot.moveTo(PointQuery, Motion)
and returns itself for more method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveBy(double x, double y, Motion motion)
FxRobotInterface
MoveRobot.moveBy(double, double, Motion)
and returns itself for more method
chaining.moveBy
in interface FxRobotInterface
public FxRobot moveTo(double x, double y, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(double, double)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveTo(Point2D point, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Point2D)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveTo(Bounds bounds, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Bounds)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveTo(Node node, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Node)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveTo(Scene scene, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Scene)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveTo(Window window, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Window)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public FxRobot moveTo(String query, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(String)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
@Unstable(reason="might change to accept all objects") public <T extends Node> FxRobot moveTo(org.hamcrest.Matcher<T> matcher, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Matcher)
and returns itself for method chaining.moveTo
in interface FxRobotInterface
public <T extends Node> FxRobot moveTo(Predicate<T> predicate, Motion motion)
FxRobotInterface
motion
(see: Motion
to the point returned from
FxRobotInterface.point(Predicate)
and returns itself for method chaining.moveTo
in interface FxRobotInterface