@Unstable(reason="class was recently added") public class FxRobot extends Object implements FxRobotInterface
Constructor and Description |
---|
FxRobot() |
Modifier and Type | Method and Description |
---|---|
FxRobot |
clickOn(Bounds bounds,
MouseButton... buttons) |
FxRobot |
clickOn(double x,
double y,
MouseButton... buttons) |
<T extends Node> |
clickOn(org.hamcrest.Matcher<T> matcher,
MouseButton... buttons) |
FxRobot |
clickOn(MouseButton... buttons) |
FxRobot |
clickOn(Node node,
MouseButton... buttons) |
FxRobot |
clickOn(Point2D point,
MouseButton... buttons) |
FxRobot |
clickOn(PointQuery pointQuery,
MouseButton... buttons) |
<T extends Node> |
clickOn(com.google.common.base.Predicate<T> predicate,
MouseButton... buttons) |
FxRobot |
clickOn(Scene scene,
MouseButton... buttons) |
FxRobot |
clickOn(String query,
MouseButton... buttons) |
FxRobot |
clickOn(Window window,
MouseButton... buttons) |
FxRobot |
closeCurrentWindow() |
FxRobot |
doubleClickOn(Bounds bounds,
MouseButton... buttons) |
FxRobot |
doubleClickOn(double x,
double y,
MouseButton... buttons) |
<T extends Node> |
doubleClickOn(org.hamcrest.Matcher<T> matcher,
MouseButton... buttons) |
FxRobot |
doubleClickOn(MouseButton... buttons) |
FxRobot |
doubleClickOn(Node node,
MouseButton... buttons) |
FxRobot |
doubleClickOn(Point2D point,
MouseButton... buttons) |
FxRobot |
doubleClickOn(PointQuery pointQuery,
MouseButton... buttons) |
<T extends Node> |
doubleClickOn(com.google.common.base.Predicate<T> predicate,
MouseButton... buttons) |
FxRobot |
doubleClickOn(Scene scene,
MouseButton... buttons) |
FxRobot |
doubleClickOn(String query,
MouseButton... buttons) |
FxRobot |
doubleClickOn(Window window,
MouseButton... buttons) |
FxRobot |
drag(Bounds bounds,
MouseButton... buttons) |
FxRobot |
drag(double x,
double y,
MouseButton... buttons) |
<T extends Node> |
drag(org.hamcrest.Matcher<T> matcher,
MouseButton... buttons) |
FxRobot |
drag(MouseButton... buttons) |
FxRobot |
drag(Node node,
MouseButton... buttons) |
FxRobot |
drag(Point2D point,
MouseButton... buttons) |
FxRobot |
drag(PointQuery pointQuery,
MouseButton... buttons) |
<T extends Node> |
drag(com.google.common.base.Predicate<T> predicate,
MouseButton... buttons) |
FxRobot |
drag(Scene scene,
MouseButton... buttons) |
FxRobot |
drag(String query,
MouseButton... buttons) |
FxRobot |
drag(Window window,
MouseButton... buttons) |
FxRobot |
drop() |
FxRobot |
dropBy(double x,
double y) |
FxRobot |
dropTo(Bounds bounds) |
FxRobot |
dropTo(double x,
double y) |
<T extends Node> |
dropTo(org.hamcrest.Matcher<T> matcher) |
FxRobot |
dropTo(Node node) |
FxRobot |
dropTo(Point2D point) |
FxRobot |
dropTo(PointQuery pointQuery) |
<T extends Node> |
dropTo(com.google.common.base.Predicate<T> predicate) |
FxRobot |
dropTo(Scene scene) |
FxRobot |
dropTo(String query) |
FxRobot |
dropTo(Window window) |
FxRobot |
eraseText(int amount) |
NodeQuery |
from(Collection<Node> parentNodes) |
NodeQuery |
from(Node... parentNodes) |
NodeQuery |
from(NodeQuery nodeQuery) |
NodeQuery |
fromAll() |
<T> FxRobot |
interact(Callable<T> callable) |
FxRobot |
interact(Runnable runnable) |
<T extends Node> |
lookup(org.hamcrest.Matcher<T> matcher) |
<T extends Node> |
lookup(com.google.common.base.Predicate<T> predicate) |
NodeQuery |
lookup(String query) |
FxRobot |
moveBy(double x,
double y) |
FxRobot |
moveTo(Bounds bounds) |
FxRobot |
moveTo(double x,
double y) |
<T extends Node> |
moveTo(org.hamcrest.Matcher<T> matcher) |
FxRobot |
moveTo(Node node) |
FxRobot |
moveTo(Point2D point) |
FxRobot |
moveTo(PointQuery pointQuery) |
<T extends Node> |
moveTo(com.google.common.base.Predicate<T> predicate) |
FxRobot |
moveTo(Scene scene) |
FxRobot |
moveTo(String query) |
FxRobot |
moveTo(Window window) |
PointQuery |
offset(Bounds bounds,
double offsetX,
double offsetY) |
<T extends Node> |
offset(org.hamcrest.Matcher<T> matcher,
double offsetX,
double offsetY) |
PointQuery |
offset(Node node,
double offsetX,
double offsetY) |
PointQuery |
offset(Point2D point,
double offsetX,
double offsetY) |
<T extends Node> |
offset(com.google.common.base.Predicate<T> predicate,
double offsetX,
double offsetY) |
PointQuery |
offset(Scene scene,
double offsetX,
double offsetY) |
PointQuery |
offset(String query,
double offsetX,
double offsetY) |
PointQuery |
offset(Window window,
double offsetX,
double offsetY) |
PointQuery |
point(Bounds bounds) |
PointQuery |
point(double x,
double y) |
<T extends Node> |
point(org.hamcrest.Matcher<T> matcher) |
PointQuery |
point(Node node) |
PointQuery |
point(Point2D point) |
<T extends Node> |
point(com.google.common.base.Predicate<T> predicate) |
PointQuery |
point(Scene scene) |
PointQuery |
point(String query) |
PointQuery |
point(Window window) |
FxRobot |
pos(Pos pointPosition) |
FxRobot |
press(KeyCode... keys) |
FxRobot |
press(MouseButton... buttons)
Presses and holds mouse buttons.
|
FxRobot |
push(KeyCode... combination) |
FxRobot |
push(KeyCodeCombination combination) |
FxRobot |
release(KeyCode... keys) |
FxRobot |
release(MouseButton... buttons)
Releases pressed mouse buttons.
|
FxRobot |
rightClickOn() |
FxRobot |
rightClickOn(Bounds bounds) |
FxRobot |
rightClickOn(double x,
double y) |
<T extends Node> |
rightClickOn(org.hamcrest.Matcher<T> matcher) |
FxRobot |
rightClickOn(Node node) |
FxRobot |
rightClickOn(Point2D point) |
FxRobot |
rightClickOn(PointQuery pointQuery) |
<T extends Node> |
rightClickOn(com.google.common.base.Predicate<T> predicate) |
FxRobot |
rightClickOn(Scene scene) |
FxRobot |
rightClickOn(String query) |
FxRobot |
rightClickOn(Window window) |
FxRobotContext |
robotContext() |
Node |
rootNode(Node node) |
Node |
rootNode(Scene scene) |
Node |
rootNode(Window window) |
FxRobot |
scroll(int amount)
Deprecated.
|
FxRobot |
scroll(int amount,
VerticalDirection direction) |
FxRobot |
scroll(VerticalDirection direction) |
FxRobot |
sleep(long milliseconds) |
FxRobot |
sleep(long duration,
TimeUnit timeUnit) |
FxRobot |
target(int windowNumber) |
FxRobot |
target(Scene scene) |
FxRobot |
target(String stageTitleRegex) |
FxRobot |
target(Window window) |
FxRobot |
type(KeyCode... keyCodes) |
FxRobot |
type(KeyCode keyCode,
int times) |
FxRobot |
write(char character) |
FxRobot |
write(String text) |
@Unstable(reason="is missing apidocs") public FxRobotContext robotContext()
@Unstable(reason="is missing apidocs") public FxRobot pos(Pos pointPosition)
pos
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(double x, double y)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(Point2D point)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(Bounds bounds)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(Node node)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(Scene scene)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(Window window)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery point(String query)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> PointQuery point(org.hamcrest.Matcher<T> matcher)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> PointQuery point(com.google.common.base.Predicate<T> predicate)
point
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery offset(Point2D point, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery offset(Bounds bounds, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery offset(Node node, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery offset(Scene scene, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery offset(Window window, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public PointQuery offset(String query, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> PointQuery offset(org.hamcrest.Matcher<T> matcher, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> PointQuery offset(com.google.common.base.Predicate<T> predicate, double offsetX, double offsetY)
offset
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot target(Window window)
target
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot target(int windowNumber)
target
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot target(String stageTitleRegex)
target
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot target(Scene scene)
target
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public NodeQuery fromAll()
fromAll
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public NodeQuery from(Node... parentNodes)
from
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public NodeQuery from(Collection<Node> parentNodes)
from
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public NodeQuery from(NodeQuery nodeQuery)
from
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public NodeQuery lookup(String query)
lookup
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> NodeQuery lookup(org.hamcrest.Matcher<T> matcher)
lookup
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> NodeQuery lookup(com.google.common.base.Predicate<T> predicate)
lookup
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public Node rootNode(Window window)
rootNode
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public Node rootNode(Scene scene)
rootNode
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public Node rootNode(Node node)
rootNode
in interface FxRobotInterface
@Unstable(reason="method was recently added") public FxRobot interact(Runnable runnable)
interact
in interface FxRobotInterface
@Unstable(reason="method was recently added") public <T> FxRobot interact(Callable<T> callable)
interact
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot push(KeyCode... combination)
push
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot push(KeyCodeCombination combination)
push
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot type(KeyCode... keyCodes)
type
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot type(KeyCode keyCode, int times)
type
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot eraseText(int amount)
eraseText
in interface FxRobotInterface
@Unstable(reason="maybe extract this into a new class") public FxRobot closeCurrentWindow()
@Unstable(reason="is missing apidocs") public FxRobot write(char character)
write
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot write(String text)
write
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot sleep(long milliseconds)
sleep
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot sleep(long duration, TimeUnit timeUnit)
sleep
in interface FxRobotInterface
@Deprecated @Unstable(reason="is missing apidocs") public FxRobot scroll(int amount)
@Unstable(reason="is missing apidocs") public FxRobot scroll(int amount, VerticalDirection direction)
scroll
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot scroll(VerticalDirection direction)
scroll
in interface FxRobotInterface
@Unstable(reason="could be renamed to accept empty arrays") public FxRobot press(KeyCode... keys)
press
in interface FxRobotInterface
@Unstable(reason="could be renamed to accept empty arrays") public FxRobot release(KeyCode... keys)
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.@Unstable(reason="is missing apidocs") public FxRobot clickOn(MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(PointQuery pointQuery, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(PointQuery pointQuery, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(double x, double y, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(Point2D point, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(Bounds bounds, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(Node node, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(Scene scene, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(Window window, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot clickOn(String query, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> FxRobot clickOn(org.hamcrest.Matcher<T> matcher, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> FxRobot clickOn(com.google.common.base.Predicate<T> predicate, MouseButton... buttons)
clickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn()
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(PointQuery pointQuery)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(double x, double y)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(Point2D point)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(Bounds bounds)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(Node node)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(Scene scene)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(Window window)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot rightClickOn(String query)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> FxRobot rightClickOn(org.hamcrest.Matcher<T> matcher)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> FxRobot rightClickOn(com.google.common.base.Predicate<T> predicate)
rightClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(double x, double y, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(Point2D point, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(Bounds bounds, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(Node node, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(Scene scene, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(Window window, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot doubleClickOn(String query, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> FxRobot doubleClickOn(org.hamcrest.Matcher<T> matcher, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> FxRobot doubleClickOn(com.google.common.base.Predicate<T> predicate, MouseButton... buttons)
doubleClickOn
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(PointQuery pointQuery, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drop()
drop
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(PointQuery pointQuery)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropBy(double x, double y)
dropBy
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(double x, double y, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(Point2D point, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(Bounds bounds, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(Node node, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(Scene scene, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(Window window, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot drag(String query, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> FxRobot drag(org.hamcrest.Matcher<T> matcher, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> FxRobot drag(com.google.common.base.Predicate<T> predicate, MouseButton... buttons)
drag
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(double x, double y)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(Point2D point)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(Bounds bounds)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(Node node)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(Scene scene)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(Window window)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot dropTo(String query)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> FxRobot dropTo(org.hamcrest.Matcher<T> matcher)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public <T extends Node> FxRobot dropTo(com.google.common.base.Predicate<T> predicate)
dropTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(PointQuery pointQuery)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveBy(double x, double y)
moveBy
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(double x, double y)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(Point2D point)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(Bounds bounds)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(Node node)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(Scene scene)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(Window window)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs") public FxRobot moveTo(String query)
moveTo
in interface FxRobotInterface
@Unstable(reason="is missing apidocs; might change to accept all objects") public <T extends Node> FxRobot moveTo(org.hamcrest.Matcher<T> matcher)
moveTo
in interface FxRobotInterface