Package com.workfusion.rpa.helpers
Class RobotsKeyboard
java.lang.Object
com.workfusion.rpa.helpers.RobotsKeyboard
- All Implemented Interfaces:
org.openqa.selenium.interactions.Keyboard
Wraps original driver's Keyboard and provides additional simplified methods like:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidpressKey(CharSequence keyToPress) Delegates execution toKeyboard.pressKey(CharSequence)voidreleaseKey(CharSequence keyToRelease) Delegates execution toKeyboard.pressKey(CharSequence)voidsendKeys(CharSequence... charSequences) Sends a string to current window using keyboard.voidSends a string to current window using keyboard.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods 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
Sends a string to current window using keyboard.
Delegates invocation to driver.getKeyboard().sendKeys(...)
Driver Type: Desktop, Web
- Specified by:
sendKeysin interfaceorg.openqa.selenium.interactions.Keyboard- Parameters:
charSequences- can be a Char Sequence (ex. String, Keys.CHAR), all items will be concatenated
-
sendKeys
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
Delegates execution toKeyboard.pressKey(CharSequence)Driver Type: Desktop, Web
- Specified by:
pressKeyin interfaceorg.openqa.selenium.interactions.Keyboard
-
releaseKey
Delegates execution toKeyboard.pressKey(CharSequence)Driver Type: Desktop, Web
- Specified by:
releaseKeyin interfaceorg.openqa.selenium.interactions.Keyboard
-
equals
-
hashCode
public int hashCode()
-