com.atlassian.confluence.pageobjects
Class KeyboardShortcuts
java.lang.Object
com.atlassian.confluence.pageobjects.KeyboardShortcuts
public class KeyboardShortcuts
- extends Object
|
Constructor Summary |
KeyboardShortcuts()
|
KeyboardShortcuts(com.atlassian.webdriver.AtlassianWebDriver driver)
Deprecated. since 5.5.1 use injection and don't use the deprecated AtlassianWebDriver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyboardShortcuts
@Inject
public KeyboardShortcuts()
KeyboardShortcuts
@Deprecated
public KeyboardShortcuts(com.atlassian.webdriver.AtlassianWebDriver driver)
- Deprecated. since 5.5.1 use injection and don't use the deprecated AtlassianWebDriver
trigger
public void trigger(String keys)
sendKeysToPageBody
public KeyboardShortcuts sendKeysToPageBody(String keys)
- Send keys to page body. This avoids accidentally sending them to the address bar or somewhere.
- Since:
- 5.6
sendKeysToWindow
public KeyboardShortcuts sendKeysToWindow(String keys)
- Send keys without a specific target. This allows testing situations where the focus is expressly
manipulated by javascript, and where using
sendKeysToPageBody(String) will fail due to that.
- Since:
- 5.6
save
public void save()
getControlOrCommand
public org.openqa.selenium.Keys getControlOrCommand()
- Returns:
- an operating system dependent key for the 'control' key (which is command in OSX).
Copyright © 2003–2015 Atlassian. All rights reserved.