public class RichFacesHotkey extends Object implements Hotkey, AdvancedInteractions<RichFacesHotkey.AdvancedHotkeyInteractions>
Modifier and Type | Class and Description |
---|---|
class |
RichFacesHotkey.AdvancedHotkeyInteractions |
static class |
RichFacesHotkey.ModifierKeys |
Constructor and Description |
---|
RichFacesHotkey() |
Modifier and Type | Method and Description |
---|---|
RichFacesHotkey.AdvancedHotkeyInteractions |
advanced() |
protected org.openqa.selenium.interactions.Actions |
getActions() |
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
body element. |
void |
invoke(org.openqa.selenium.WebElement elementOrNull)
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.
|
public RichFacesHotkey.AdvancedHotkeyInteractions advanced()
advanced
in interface AdvancedInteractions<RichFacesHotkey.AdvancedHotkeyInteractions>
protected org.openqa.selenium.interactions.Actions getActions()
public void invoke()
Hotkey
body
element.invoke
in interface Hotkey
Hotkey.setHotkey(java.lang.String)
,
Hotkey.setSelector(java.lang.String)
public void invoke(org.openqa.selenium.WebElement elementOrNull)
Hotkey
invoke
in interface Hotkey
elementOrNull
- element on which the hotkey will be invoked. In case the element is null, the actually focused element is
used, otherwise the body
element is used.Hotkey.setHotkey(java.lang.String)
public void setHotkey(String hotkey)
Hotkey
public void setSelector(String selector)
Hotkey
setSelector
in interface Hotkey
selector
- JQuery selector to locate element on which the hotkey will be appliedCopyright © 2016 JBoss by Red Hat. All Rights Reserved.