Class RobotsKeyboard

java.lang.Object
com.workfusion.rpa.helpers.RobotsKeyboard
All Implemented Interfaces:
org.openqa.selenium.interactions.Keyboard

public class RobotsKeyboard extends Object implements org.openqa.selenium.interactions.Keyboard
Wraps original driver's Keyboard and provides additional simplified methods like:
  • Constructor Summary

    Constructors
    Constructor
    Description
    RobotsKeyboard(org.openqa.selenium.interactions.Keyboard keyboard)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    void
    pressKey(CharSequence keyToPress)
    Delegates execution to Keyboard.pressKey(CharSequence)
    void
    releaseKey(CharSequence keyToRelease)
    Delegates execution to Keyboard.pressKey(CharSequence)
    void
    sendKeys(CharSequence... charSequences)
    Sends a string to current window using keyboard.
    void
    Sends a string to current window using keyboard.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openqa.selenium.interactions.Keyboard

    clipboardText, copySelectedText, selectAllTextAndCopy, setClipboardText
  • Constructor Details

    • RobotsKeyboard

      public RobotsKeyboard(org.openqa.selenium.interactions.Keyboard keyboard)
  • Method Details

    • sendKeys

      public void sendKeys(CharSequence... charSequences)

      Sends a string to current window using keyboard.

      Delegates invocation to driver.getKeyboard().sendKeys(...)

      Driver Type: Desktop, Web

      Specified by:
      sendKeys in interface org.openqa.selenium.interactions.Keyboard
      Parameters:
      charSequences - can be a Char Sequence (ex. String, Keys.CHAR), all items will be concatenated
    • sendKeys

      public void sendKeys(Object text)

      Sends a string to current window using keyboard.

      Delegates invocation to driver.getKeyboard().sendKeys(...)

      Driver Type: Desktop, Web

      Parameters:
      text - can be a Collection or Array, all items will be concatenated
    • pressKey

      public void pressKey(CharSequence keyToPress)
      Delegates execution to Keyboard.pressKey(CharSequence)

      Driver Type: Desktop, Web

      Specified by:
      pressKey in interface org.openqa.selenium.interactions.Keyboard
    • releaseKey

      public void releaseKey(CharSequence keyToRelease)
      Delegates execution to Keyboard.pressKey(CharSequence)

      Driver Type: Desktop, Web

      Specified by:
      releaseKey in interface org.openqa.selenium.interactions.Keyboard
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object