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.Keyboard
charSequences
- 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.Keyboard
public void releaseKey(CharSequence keyToRelease)
Keyboard.pressKey(CharSequence)
Driver Type: Desktop
releaseKey
in interface org.openqa.selenium.interactions.Keyboard
Copyright 2016, WorkFusion, Inc.