public class KeyboardActions
extends java.lang.Object
| Constructor and Description |
|---|
KeyboardActions(org.openqa.selenium.WebDriver driver)
Creates a new object to execute actions with the keyboard, using given selenium driver.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.openqa.selenium.interactions.Actions |
actions()
Get selenium interactions actions.
|
org.openqa.selenium.interactions.Keyboard |
basic()
Basic keyboard operations
|
KeyboardActions |
keyDown(org.openqa.selenium.Keys theKey)
Performs a modifier key press.
|
KeyboardActions |
keyUp(org.openqa.selenium.Keys theKey)
Performs a modifier key release.
|
KeyboardActions |
sendKeys(java.lang.CharSequence... keysToSend)
Sends keys to the active element.
|
public KeyboardActions(org.openqa.selenium.WebDriver driver)
driver - selenium driverprotected org.openqa.selenium.interactions.Actions actions()
public org.openqa.selenium.interactions.Keyboard basic()
public KeyboardActions keyDown(org.openqa.selenium.Keys theKey)
theKey - Either Keys.SHIFT, Keys.ALT or Keys.CONTROL. If the
provided key is none of those, IllegalArgumentException is thrown.Actions.keyDown(CharSequence)public KeyboardActions keyUp(org.openqa.selenium.Keys theKey)
theKey - Either Keys.SHIFT, Keys.ALT or Keys.CONTROL.Actions.keyUp(CharSequence)public KeyboardActions sendKeys(java.lang.CharSequence... keysToSend)
WebElement.sendKeys(CharSequence...) on the active element in two ways:
keysToSend - The keys.Actions.sendKeys(CharSequence...)Copyright © 2018 FluentLenium. All Rights Reserved.