Interface Keyboard

  • All Superinterfaces:
    Constant
    All Known Implementing Classes:
    Session

    public interface Keyboard
    extends Constant
    Interface representing basic keyboard operations.
    • Method Detail

      • sendKeys

        default Session sendKeys​(String text)
        Use this method to simulate typing into an element, which may set its value.
        Parameters:
        text - character sequence to send to the element
        Returns:
        this
      • sendTab

        default Session sendTab()
        Use this method to simulate typing TAB key.
        Returns:
        this
      • sendEnter

        default Session sendEnter()
        Use this method to simulate typing ENTER key.
        Returns:
        this
      • sendBackspace

        default Session sendBackspace()
        Use this method to simulate typing BACKSPACE key.
        Returns:
        this
      • sendLeftArrow

        default Session sendLeftArrow()
        Use this method to simulate typing LEFT_ARROW key.
        Returns:
        this
      • sendUpArrow

        default Session sendUpArrow()
        Use this method to simulate typing UP_ARROW key.
        Returns:
        this
      • sendRightArrow

        default Session sendRightArrow()
        Use this method to simulate typing RIGHT_ARROW key.
        Returns:
        this
      • sendDownArrow

        default Session sendDownArrow()
        Use this method to simulate typing DOWN_ARROW key.
        Returns:
        this
      • sendEsc

        default Session sendEsc()
        Use this method to simulate typing ESC key.
        Returns:
        this
      • sendKeyCode

        default Session sendKeyCode​(int keyCode)
        Use this method to simulate typing unicode value of keyboard key.
        Returns:
        this