public interface Hotkey
Modifier and Type | Method and Description |
---|---|
void |
invoke()
Invokes the hotkey on an element which is specified by selector attribute of hotkey, when the selector is empty, then the
hotkey will be invoked on
html element. |
void |
invoke(org.openqa.selenium.WebElement element)
Invokes the hotkey on a specified element.
|
void |
setHotkey(String hotkey)
Sets the hotkey which will be invoked
|
void |
setSelector(String selector)
Sets the JQuery selector, by which the element on which the hotkey will be invoked, will be found.
|
void invoke()
html
element.void invoke(org.openqa.selenium.WebElement element)
element
- element on which the hotkey will be invoked. Element cannot be null.IllegalArgumentException
- if you have not set hotkey correctlysetHotkey(java.lang.String)
void setHotkey(String hotkey)
hotkey
- key sequence which will be invoked, keys are separated with '+' sign and are in lowercase. For example: 'alt+x'.IllegalArgumentException
- if the given hotkey
is null, or emptyvoid setSelector(String selector)
selector
- JQuery selector to locate element on which the hotkey will be appliedIllegalArgumentException
- if the given selector
is null, or emptyCopyright © 2015 JBoss by Red Hat. All Rights Reserved.