- java.lang.Object
-
- org.testfx.robot.impl.WriteRobotImpl
-
- All Implemented Interfaces:
WriteRobot
public class WriteRobotImpl extends Object implements WriteRobot
-
-
Constructor Summary
Constructors Constructor Description WriteRobotImpl(BaseRobot baseRobot, SleepRobot sleepRobot, WindowFinder windowFinder)
-
Method Summary
Modifier and Type Method Description void
write(char character)
Writes a given text character.void
write(String text)
Writes the given text characters one after the other.void
write(String text, int sleepMillis)
Writes the given text characters one after the other, sleeping forsleepMillis
milliseconds after each typed character.
-
-
-
Constructor Detail
-
WriteRobotImpl
public WriteRobotImpl(BaseRobot baseRobot, SleepRobot sleepRobot, WindowFinder windowFinder)
-
-
Method Detail
-
write
public void write(char character)
Description copied from interface:WriteRobot
Writes a given text character.- Specified by:
write
in interfaceWriteRobot
- Parameters:
character
- the text character to write
-
write
public void write(String text)
Description copied from interface:WriteRobot
Writes the given text characters one after the other.- Specified by:
write
in interfaceWriteRobot
- Parameters:
text
- the text characters to write
-
write
public void write(String text, int sleepMillis)
Description copied from interface:WriteRobot
Writes the given text characters one after the other, sleeping forsleepMillis
milliseconds after each typed character.- Specified by:
write
in interfaceWriteRobot
- Parameters:
text
- the text characters to writesleepMillis
- the milliseconds to sleep for after each character
-
-