public class RobotsKeyboard extends Object implements org.openqa.selenium.interactions.Keyboard
| Constructor and Description |
|---|
RobotsKeyboard(org.openqa.selenium.interactions.Keyboard keyboard) |
| Modifier and Type | Method and Description |
|---|---|
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 |
sendKeys(Object text)
Sends a string to current window using keyboard.
|
public RobotsKeyboard(org.openqa.selenium.interactions.Keyboard keyboard)
public void sendKeys(CharSequence... charSequences)
Sends a string to current window using keyboard.
Delegates invocation to driver.getKeyboard().sendKeys(...)
Driver Type: Desktop, Web
sendKeys in interface org.openqa.selenium.interactions.KeyboardcharSequences - can be a Char Sequence (ex. String, Keys.CHAR), all items will be concatenatedpublic void sendKeys(Object text)
Sends a string to current window using keyboard.
Delegates invocation to driver.getKeyboard().sendKeys(...)
Driver Type: Desktop, Web
text - can be a Collection or Array, all items will be concatenatedpublic void pressKey(CharSequence keyToPress)
Keyboard.pressKey(CharSequence)
Driver Type: Desktop
pressKey in interface org.openqa.selenium.interactions.Keyboardpublic void releaseKey(CharSequence keyToRelease)
Keyboard.pressKey(CharSequence)
Driver Type: Desktop
releaseKey in interface org.openqa.selenium.interactions.KeyboardCopyright 2016, WorkFusion, Inc.