| Package | Description |
|---|---|
| org.testfx.api | |
| org.testfx.robot | |
| org.testfx.robot.impl | |
| org.testfx.service.locator | |
| org.testfx.service.locator.impl | |
| org.testfx.service.query | |
| org.testfx.service.query.impl |
| Modifier and Type | Method and Description |
|---|---|
PointQuery |
FxRobot.offset(javafx.geometry.Bounds bounds,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(javafx.geometry.Bounds bounds,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Bounds) and sets the query's offset by the given offset values. |
default PointQuery |
FxRobotInterface.offset(javafx.geometry.Bounds bounds,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
<T extends javafx.scene.Node> |
FxRobot.offset(org.hamcrest.Matcher<T> matcher,
double offsetX,
double offsetY) |
<T extends javafx.scene.Node> |
FxRobotInterface.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. |
default <T extends javafx.scene.Node> |
FxRobotInterface.offset(org.hamcrest.Matcher<T> matcher,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
PointQuery |
FxRobot.offset(javafx.scene.Node node,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(javafx.scene.Node node,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Node) and sets the query's offset by the given offset values. |
default PointQuery |
FxRobotInterface.offset(javafx.scene.Node node,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
PointQuery |
FxRobot.offset(javafx.scene.Node node,
javafx.geometry.Pos offsetReferencePos,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(javafx.scene.Node node,
javafx.geometry.Pos offsetReferencePos,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.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. |
default PointQuery |
FxRobotInterface.offset(javafx.scene.Node node,
javafx.geometry.Pos offsetReferencePos,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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. |
PointQuery |
FxRobot.offset(javafx.geometry.Point2D point,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(javafx.geometry.Point2D point,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Point2D) and sets the query's offset by the given offset values. |
default PointQuery |
FxRobotInterface.offset(javafx.geometry.Point2D point,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
<T extends javafx.scene.Node> |
FxRobot.offset(java.util.function.Predicate<T> predicate,
double offsetX,
double offsetY) |
<T extends javafx.scene.Node> |
FxRobotInterface.offset(java.util.function.Predicate<T> predicate,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Predicate) and sets the query's offset by the given offset values. |
default <T extends javafx.scene.Node> |
FxRobotInterface.offset(java.util.function.Predicate<T> predicate,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
PointQuery |
FxRobot.offset(javafx.scene.Scene scene,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(javafx.scene.Scene scene,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Scene) and sets the query's offset by the given offset values. |
default PointQuery |
FxRobotInterface.offset(javafx.scene.Scene scene,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
PointQuery |
FxRobot.offset(java.lang.String query,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(java.lang.String query,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(String) and sets the query's offset by the given offset values. |
default PointQuery |
FxRobotInterface.offset(java.lang.String query,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
PointQuery |
FxRobot.offset(javafx.stage.Window window,
double offsetX,
double offsetY) |
PointQuery |
FxRobotInterface.offset(javafx.stage.Window window,
double offsetX,
double offsetY)
Convenience method: Calls
FxRobotInterface.point(Window) and sets the query's offset by the given offset values. |
default PointQuery |
FxRobotInterface.offset(javafx.stage.Window window,
javafx.geometry.Point2D offset)
Convenience method: Calls
FxRobotInterface.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). |
PointQuery |
FxRobot.point(javafx.geometry.Bounds bounds) |
PointQuery |
FxRobotInterface.point(javafx.geometry.Bounds bounds)
Calls
PointLocator.point(Bounds) and sets the PointQuery's
getPosition() to FxRobotContext.getPointPosition(). |
PointQuery |
FxRobot.point(double x,
double y) |
PointQuery |
FxRobotInterface.point(double x,
double y)
Calls
PointLocator.point(Point2D) using new Point2D(x, y) and sets
the PointQuery's getPosition() to FxRobotContext.getPointPosition(). |
<T extends javafx.scene.Node> |
FxRobot.point(org.hamcrest.Matcher<T> matcher) |
<T extends javafx.scene.Node> |
FxRobotInterface.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 |
FxRobot.point(javafx.scene.Node node) |
PointQuery |
FxRobotInterface.point(javafx.scene.Node node)
Calls
PointLocator.point(Node) and sets the PointQuery's
getPosition() to FxRobotContext.getPointPosition(). |
PointQuery |
FxRobot.point(javafx.geometry.Point2D point) |
PointQuery |
FxRobotInterface.point(javafx.geometry.Point2D point)
Calls
PointLocator.point(Point2D) and sets the PointQuery's
getPosition() to FxRobotContext.getPointPosition(). |
<T extends javafx.scene.Node> |
FxRobot.point(java.util.function.Predicate<T> predicate) |
<T extends javafx.scene.Node> |
FxRobotInterface.point(java.util.function.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 |
FxRobot.point(javafx.scene.Scene scene) |
PointQuery |
FxRobotInterface.point(javafx.scene.Scene scene)
Calls
PointLocator.point(Scene) and sets the PointQuery's
getPosition() to FxRobotContext.getPointPosition(). |
PointQuery |
FxRobot.point(java.lang.String query) |
PointQuery |
FxRobotInterface.point(java.lang.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 |
FxRobot.point(javafx.stage.Window window) |
PointQuery |
FxRobotInterface.point(javafx.stage.Window window)
Calls
PointLocator.point(Window) and sets the PointQuery's
getPosition() to FxRobotContext.getPointPosition(). |
| Modifier and Type | Method and Description |
|---|---|
FxRobot |
FxRobot.clickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons) |
FxRobotInterface |
FxRobotInterface.clickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons)
Calls
ClickRobot.clickOn(PointQuery, MouseButton...) and returns itself for more method
chaining. |
default FxRobotInterface |
FxRobotInterface.clickOn(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Calls
ClickRobot.clickOn(PointQuery, Motion, MouseButton...) and returns itself for
more method chaining. |
FxRobot |
FxRobot.doubleClickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons) |
FxRobotInterface |
FxRobotInterface.doubleClickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons)
Calls
ClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...) and returns itself
for method chaining. |
default FxRobotInterface |
FxRobotInterface.doubleClickOn(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Calls
ClickRobot.doubleClickOn(PointQuery, Motion, MouseButton...) and returns itself
for method chaining. |
FxRobot |
FxRobot.drag(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons) |
FxRobotInterface |
FxRobotInterface.drag(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Calls
DragRobot.drag(PointQuery, MouseButton...) and returns itself for more method
chaining. |
FxRobot |
FxRobot.dropTo(PointQuery pointQuery) |
FxRobotInterface |
FxRobotInterface.dropTo(PointQuery pointQuery)
Calls
DragRobot.dropTo(PointQuery) and returns itself for more method chaining. |
default FxRobotInterface |
FxRobotInterface.moveTo(PointQuery pointQuery)
Calls
MoveRobot.moveTo(PointQuery) and returns itself for more method chaining. |
FxRobot |
FxRobot.moveTo(PointQuery pointQuery,
Motion motion) |
FxRobotInterface |
FxRobotInterface.moveTo(PointQuery pointQuery,
Motion motion)
Calls
MoveRobot.moveTo(PointQuery, Motion) and returns itself for more method chaining. |
default FxRobotInterface |
FxRobotInterface.rightClickOn(PointQuery pointQuery)
Convenience method: Moves mouse directly to the point returned from
query(), clicks
the MouseButton.SECONDARY button and returns itself for method chaining. |
FxRobot |
FxRobot.rightClickOn(PointQuery pointQuery,
Motion motion) |
FxRobotInterface |
FxRobotInterface.rightClickOn(PointQuery pointQuery,
Motion motion)
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClickRobot.clickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons)
|
default void |
ClickRobot.clickOn(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Moves the mouse directly to the location specified by the given
query() and
clicks whatever is under it. |
void |
ClickRobot.doubleClickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons)
|
default void |
ClickRobot.doubleClickOn(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Moves the mouse directly to the location specified by the given
query() and
double-clicks whatever is under it. |
void |
DragRobot.drag(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Moves the mouse to the location specified by the given
query() and then presses the
given mouse button(s) on whatever is under the mouse's new location. |
void |
DragRobot.dropTo(PointQuery pointQuery)
Moves the mouse to the location specified by the given
query() and then
releases the mouse. |
default void |
MoveRobot.moveTo(PointQuery pointQuery)
Moves the mouse directly to the (x,y) position specified by the given
query(). |
void |
MoveRobot.moveTo(PointQuery pointQuery,
Motion motion)
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClickRobotImpl.clickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons) |
void |
ClickRobotImpl.doubleClickOn(PointQuery pointQuery,
Motion motion,
javafx.scene.input.MouseButton... buttons) |
void |
DragRobotImpl.drag(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons) |
void |
DragRobotImpl.dropTo(PointQuery pointQuery) |
void |
MoveRobotImpl.moveTo(PointQuery pointQuery,
Motion motion) |
| Modifier and Type | Method and Description |
|---|---|
PointQuery |
PointLocator.point(javafx.geometry.Bounds bounds) |
PointQuery |
PointLocator.point(javafx.scene.Node node)
Returns the center of the given
Node in screen coordinates. |
PointQuery |
PointLocator.point(javafx.geometry.Point2D point) |
PointQuery |
PointLocator.point(javafx.scene.Scene scene) |
PointQuery |
PointLocator.point(javafx.stage.Window window) |
| Modifier and Type | Method and Description |
|---|---|
PointQuery |
PointLocatorImpl.point(javafx.geometry.Bounds bounds) |
PointQuery |
PointLocatorImpl.point(javafx.scene.Node node) |
PointQuery |
PointLocatorImpl.point(javafx.geometry.Point2D point) |
PointQuery |
PointLocatorImpl.point(javafx.scene.Scene scene) |
PointQuery |
PointLocatorImpl.point(javafx.stage.Window window) |
| Modifier and Type | Method and Description |
|---|---|
PointQuery |
PointQuery.atOffset(double offsetX,
double offsetY)
Updates
getOffset() by the combination of the current offset's x value and
offsetX and its y value and offsetY. |
PointQuery |
PointQuery.atOffset(javafx.geometry.Point2D offset)
Updates
getOffset() to be
new Point2D(this.offset.getX() + offset.getX(), this.offset.getY() + offset.getY()). |
PointQuery |
PointQuery.atPosition(double positionX,
double positionY)
Updates
getPosition() to the new position. |
PointQuery |
PointQuery.atPosition(javafx.geometry.Point2D position)
Updates
getPosition() to the new position. |
PointQuery |
PointQuery.atPosition(javafx.geometry.Pos position)
Updates
getPosition() to a new one based on the given position. |
PointQuery |
PointQuery.onNode(javafx.scene.Node node) |
| Modifier and Type | Class and Description |
|---|---|
class |
BoundsPointQuery
This point query implements a PointQuery within the bounds of an object.
|
class |
CallableBoundsPointQuery |
class |
PointQueryBase |
| Modifier and Type | Method and Description |
|---|---|
PointQuery |
PointQueryBase.atOffset(double offsetX,
double offsetY) |
PointQuery |
PointQueryBase.atOffset(javafx.geometry.Point2D offset) |
PointQuery |
PointQueryBase.atPosition(double positionX,
double positionY) |
PointQuery |
PointQueryBase.atPosition(javafx.geometry.Point2D position) |
PointQuery |
PointQueryBase.atPosition(javafx.geometry.Pos position) |
PointQuery |
PointQueryBase.onNode(javafx.scene.Node node) |