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
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.
|
public RichFacesHotkey.AdvancedHotkeyInteractions advanced()
advanced
in interface AdvancedInteractions<RichFacesHotkey.AdvancedHotkeyInteractions>
protected org.openqa.selenium.interactions.Actions getActions()
public void invoke()
Hotkey
html
element.invoke
in interface Hotkey
Hotkey.setHotkey(java.lang.String)
,
Hotkey.setSelector(java.lang.String)
public void invoke(org.openqa.selenium.WebElement element)
Hotkey
invoke
in interface Hotkey
element
- element on which the hotkey will be invoked. Element cannot be null.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 © 2015 JBoss by Red Hat. All Rights Reserved.