Uses of Class
org.testfx.api.FxRobot
Packages that use FxRobot
Package
Description
-
Uses of FxRobot in org.testfx.api
Methods in org.testfx.api that return FxRobotModifier and TypeMethodDescription<T extends javafx.scene.Node>
FxRobotFxRobot.clickOn
(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.clickOn
(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.clickOn
(javafx.scene.input.MouseButton... buttons) FxRobot.clickOn
(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons) <T extends javafx.scene.Node>
FxRobotFxRobot.clickOn
(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.clickOn
(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.closeCurrentWindow()
Deprecated.The implementation of this method simply pushes the keys ALT+F4 which does not close the current window on all platforms.FxRobot.doubleClickOn
(double x, double y, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(String query, Motion motion, javafx.scene.input.MouseButton... buttons) <T extends javafx.scene.Node>
FxRobotFxRobot.doubleClickOn
(Predicate<T> predicate, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(javafx.geometry.Bounds bounds, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(javafx.geometry.Point2D point, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(javafx.scene.Node node, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(javafx.scene.Scene scene, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(javafx.stage.Window window, Motion motion, javafx.scene.input.MouseButton... buttons) <T extends javafx.scene.Node>
FxRobotFxRobot.doubleClickOn
(org.hamcrest.Matcher<T> matcher, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.doubleClickOn
(PointQuery pointQuery, Motion motion, javafx.scene.input.MouseButton... buttons) FxRobot.drag
(double x, double y, javafx.scene.input.MouseButton... buttons) <T extends javafx.scene.Node>
FxRobotFxRobot.drag
(javafx.geometry.Bounds bounds, javafx.scene.input.MouseButton... buttons) FxRobot.drag
(javafx.geometry.Point2D point, javafx.scene.input.MouseButton... buttons) FxRobot.drag
(javafx.scene.input.MouseButton... buttons) FxRobot.drag
(javafx.scene.Node node, javafx.scene.input.MouseButton... buttons) FxRobot.drag
(javafx.scene.Scene scene, javafx.scene.input.MouseButton... buttons) FxRobot.drag
(javafx.stage.Window window, javafx.scene.input.MouseButton... buttons) <T extends javafx.scene.Node>
FxRobotFxRobot.drag
(org.hamcrest.Matcher<T> matcher, javafx.scene.input.MouseButton... buttons) FxRobot.drag
(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons) FxRobot.drop()
FxRobot.dropBy
(double x, double y) FxRobot.dropTo
(double x, double y) <T extends javafx.scene.Node>
FxRobotFxRobot.dropTo
(javafx.geometry.Bounds bounds) FxRobot.dropTo
(javafx.geometry.Point2D point) FxRobot.dropTo
(javafx.scene.Node node) FxRobot.dropTo
(javafx.scene.Scene scene) FxRobot.dropTo
(javafx.stage.Window window) <T extends javafx.scene.Node>
FxRobotFxRobot.dropTo
(org.hamcrest.Matcher<T> matcher) FxRobot.dropTo
(PointQuery pointQuery) FxRobot.eraseText
(int amount) <T> FxRobot
FxRobot.interactNoWait
(Runnable runnable) <T> FxRobot
FxRobot.interactNoWait
(Callable<T> callable) FxRobot.interrupt()
FxRobot.interrupt
(int attemptsCount) <T extends javafx.scene.Node>
FxRobotFxRobot.moveTo
(javafx.scene.Node node, javafx.geometry.Pos offsetReferencePos, javafx.geometry.Point2D offset, Motion motion) <T extends javafx.scene.Node>
FxRobotFxRobot.moveTo
(PointQuery pointQuery, Motion motion) FxRobot.press
(javafx.scene.input.KeyCode... keys) FxRobot.press
(javafx.scene.input.MouseButton... buttons) FxRobot.push
(javafx.scene.input.KeyCode... combination) FxRobot.push
(javafx.scene.input.KeyCodeCombination combination) FxRobot.release
(javafx.scene.input.KeyCode... keys) FxRobot.release
(javafx.scene.input.MouseButton... buttons) FxRobot.rightClickOn()
FxRobot.rightClickOn
(double x, double y, Motion motion) FxRobot.rightClickOn
(String query, Motion motion) <T extends javafx.scene.Node>
FxRobotFxRobot.rightClickOn
(Predicate<T> predicate, Motion motion) FxRobot.rightClickOn
(javafx.geometry.Bounds bounds, Motion motion) FxRobot.rightClickOn
(javafx.geometry.Point2D point, Motion motion) FxRobot.rightClickOn
(javafx.scene.Node node, Motion motion) FxRobot.rightClickOn
(javafx.scene.Scene scene, Motion motion) FxRobot.rightClickOn
(javafx.stage.Window window, Motion motion) <T extends javafx.scene.Node>
FxRobotFxRobot.rightClickOn
(org.hamcrest.Matcher<T> matcher, Motion motion) FxRobot.rightClickOn
(PointQuery pointQuery, Motion motion) FxRobot.scroll
(int amount) Deprecated.FxRobot.scroll
(int amount, javafx.geometry.HorizontalDirection direction) FxRobot.scroll
(int amount, javafx.geometry.VerticalDirection direction) FxRobot.scroll
(javafx.geometry.HorizontalDirection direction) FxRobot.scroll
(javafx.geometry.VerticalDirection direction) FxRobot.sleep
(long milliseconds) FxRobot.targetPos
(javafx.geometry.Pos pointPosition) FxRobot.targetWindow
(int windowNumber) FxRobot.targetWindow
(String stageTitleRegex) FxRobot.targetWindow
(Predicate<javafx.stage.Window> predicate) FxRobot.targetWindow
(Pattern stageTitlePattern) FxRobot.targetWindow
(javafx.scene.Node node) FxRobot.targetWindow
(javafx.scene.Scene scene) FxRobot.targetWindow
(javafx.stage.Window window) FxRobot.type
(javafx.scene.input.KeyCode... keyCodes) FxRobot.type
(javafx.scene.input.KeyCode keyCode, int times) FxRobot.write
(char character) Methods in org.testfx.api with parameters of type FxRobotModifier and TypeMethodDescriptionstatic void
FxToolkit.cleanupAfterTest
(FxRobot robot, javafx.application.Application application) static void
FxToolkit.cleanupInput
(FxRobot robot) Runs on theJavaFX Application Thread
: Releases remaining mouse and keyboard events. -
Uses of FxRobot in org.testfx.framework.junit
Subclasses of FxRobot in org.testfx.framework.junitModifier and TypeClassDescriptionclass
class
The base class that your JUnit test classes should extend from that interact with and/or verify the state of a JavaFX UI. -
Uses of FxRobot in org.testfx.framework.junit5
Subclasses of FxRobot in org.testfx.framework.junit5 -
Uses of FxRobot in org.testfx.util
Methods in org.testfx.util with parameters of type FxRobotModifier and TypeMethodDescriptionstatic Function
<StringBuilder, StringBuilder> DebugUtils.informedErrorMessage
(String headerText, boolean takeScreenshot, boolean showFiredEvents, FxRobot robot, boolean showKeysPressed, boolean showMouseButtonsPressed) Convenience method forDebugUtils.insertHeader(String)
using "Context:" as the header text and then, viaDebugUtils.insertContent(String, Object)
, composesDebugUtils.showKeysPressedAtTestFailure(FxRobot)
,DebugUtils.showMouseButtonsPressedAtTestFailure(FxRobot)
, andDebugUtils.showFiredEvents()
together in their given order, depending on what the booleans are.static Function
<StringBuilder, StringBuilder> DebugUtils.informedErrorMessage
(FxRobot robot) Convenience method forDebugUtils.informedErrorMessage(String, boolean, boolean, FxRobot, boolean, boolean)
with all booleans set totrue
and the header text set to"Context:"
.static Function
<StringBuilder, StringBuilder> DebugUtils.informedErrorMessage
(FxRobot robot, String headerText) Convenience method forDebugUtils.informedErrorMessage(String, boolean, boolean, FxRobot, boolean, boolean)
with all booleans set totrue
.static Function
<StringBuilder, StringBuilder> DebugUtils.showKeysPressedAtTestFailure
(FxRobot robot) ViaDebugUtils.insertContent(String, Object)
: shows the keys that were pressed when the test failed.static Function
<StringBuilder, StringBuilder> DebugUtils.showKeysPressedAtTestFailure
(FxRobot robot, String indent) static Function
<StringBuilder, StringBuilder> DebugUtils.showMouseButtonsPressedAtTestFailure
(FxRobot robot) ViaDebugUtils.insertContent(String, Object)
: shows theMouseButton
s that were pressed when the test failed.static Function
<StringBuilder, StringBuilder> DebugUtils.showMouseButtonsPressedAtTestFailure
(FxRobot robot, String indent)