Package org.testfx.robot
Interface TypeRobot
- All Known Implementing Classes:
TypeRobotImpl
public interface TypeRobot
-
Method Summary
Modifier and TypeMethodDescriptionvoid
push
(javafx.scene.input.KeyCode... combination) Pushes a given key combination.void
push
(javafx.scene.input.KeyCodeCombination combination) Pushes a given key combination.void
type
(javafx.scene.input.KeyCode... keyCodes) Types given keys one after the other.void
type
(javafx.scene.input.KeyCode keyCode, int times) Types a given key multiple times.
-
Method Details
-
push
void push(javafx.scene.input.KeyCode... combination) Pushes a given key combination.- Parameters:
combination
- the combination to push
-
push
void push(javafx.scene.input.KeyCodeCombination combination) Pushes a given key combination.- Parameters:
combination
- the combination to push
-
type
void type(javafx.scene.input.KeyCode... keyCodes) Types given keys one after the other.- Parameters:
keyCodes
- the key codes to type
-
type
void type(javafx.scene.input.KeyCode keyCode, int times) Types a given key multiple times.- Parameters:
keyCode
- the key code to typetimes
timestimes
- number of times to type thekeyCode
-