org.specrunner.webdriver
Class AbstractPluginKeyboard
java.lang.Object
org.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.AbstractPluginNamed
org.specrunner.plugins.core.AbstractPluginScoped
org.specrunner.plugins.core.AbstractPluginValue
org.specrunner.webdriver.AbstractPluginBrowserAware
org.specrunner.webdriver.AbstractPluginHasInputDevices
org.specrunner.webdriver.AbstractPluginKeyboard
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
- Direct Known Subclasses:
- PluginPressKeys, PluginReleaseKeys
public abstract class AbstractPluginKeyboard
- extends AbstractPluginHasInputDevices
Partial implementation for keyboard interactions.
- Author:
- Thiago Santos
|
Method Summary |
protected void |
doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.interactions.HasInputDevices input)
Perform actions on input devices drivers. |
protected abstract void |
doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.interactions.HasInputDevices input,
org.openqa.selenium.interactions.Keyboard keyboard)
Perform an action on input devices with keyboard. |
protected org.openqa.selenium.Keys |
getKey()
Gets the keys by the name set in name attribute. |
| Methods inherited from class org.specrunner.webdriver.AbstractPluginBrowserAware |
doEnd, getBrowserName, getDir, getDownload, getInterval, getMaxwait, getWaitCondition, getWaitfor, initialize, isWaitForClient, setDir, setDownload, setInterval, setMaxwait, setWaitfor, waitForClient |
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
copy, doStart, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
AbstractPluginKeyboard
public AbstractPluginKeyboard()
doEnd
protected void doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.interactions.HasInputDevices input)
throws PluginException
- Description copied from class:
AbstractPluginHasInputDevices
- Perform actions on input devices drivers.
- Specified by:
doEnd in class AbstractPluginHasInputDevices
- Parameters:
context - The context.result - The result.client - The client.input - The devices.
- Throws:
PluginException - On processing errors.
doEnd
protected abstract void doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.interactions.HasInputDevices input,
org.openqa.selenium.interactions.Keyboard keyboard)
throws PluginException
- Perform an action on input devices with keyboard.
- Parameters:
context - The context.result - The result.client - The client.input - The device.keyboard - The keyboard.
- Throws:
PluginException - On processing errors.
getKey
protected org.openqa.selenium.Keys getKey()
throws PluginException
- Gets the keys by the name set in name attribute.
- Returns:
- The keys.
- Throws:
PluginException - On key lookup errors.
Copyright © 2013. All rights reserved.