Class WriteRobotImpl

java.lang.Object
org.testfx.robot.impl.WriteRobotImpl
All Implemented Interfaces:
WriteRobot

public class WriteRobotImpl extends Object implements WriteRobot
  • Field Details

    • SLEEP_AFTER_CHARACTER_IN_MILLIS

      private static final int SLEEP_AFTER_CHARACTER_IN_MILLIS
    • baseRobot

      private final BaseRobot baseRobot
    • sleepRobot

      private final SleepRobot sleepRobot
    • windowFinder

      private final WindowFinder windowFinder
  • Constructor Details

  • Method Details

    • write

      public void write(char character)
      Description copied from interface: WriteRobot
      Writes a given text character.
      Specified by:
      write in interface WriteRobot
      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 interface WriteRobot
      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 for sleepMillis milliseconds after each typed character.
      Specified by:
      write in interface WriteRobot
      Parameters:
      text - the text characters to write
      sleepMillis - the milliseconds to sleep for after each character
    • fetchTargetWindow

      private javafx.stage.Window fetchTargetWindow()
    • typeCharacterInScene

      private void typeCharacterInScene(char character, javafx.scene.Scene scene)
    • determineKeyCode

      private javafx.scene.input.KeyCode determineKeyCode(char character)