org.specrunner.webdriver
Class AbstractPluginRotatable
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.AbstractPluginRotatable
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
- Direct Known Subclasses:
- PluginRotate, PluginScreenOrientation
public abstract class AbstractPluginRotatable
- extends AbstractPluginBrowserAware
Partial implementation for rotatable interactions.
- Author:
- Thiago Santos
|
Method Summary |
protected void |
doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
Method delegation which receives the browser to be used by subclasses. |
protected abstract void |
doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.Rotatable rotatable)
Perform an action on rotatable drivers. |
String |
getOrientation()
Get the orientation name. |
protected org.openqa.selenium.ScreenOrientation |
getOrientationValue()
Gets the object orientation by its name. |
void |
setOrientation(String orientation)
Set the orientation. |
| 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 |
AbstractPluginRotatable
public AbstractPluginRotatable()
getOrientation
public String getOrientation()
- Get the orientation name.
- Returns:
- The orientation name.
setOrientation
public void setOrientation(String orientation)
- Set the orientation.
- Parameters:
orientation - The orientation.
getOrientationValue
protected org.openqa.selenium.ScreenOrientation getOrientationValue()
throws PluginException
- Gets the object orientation by its name.
- Returns:
- The orientation object.
- Throws:
PluginException - On orientation lookup errors.
doEnd
protected void doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
throws PluginException
- Description copied from class:
AbstractPluginBrowserAware
- Method delegation which receives the browser to be used by subclasses.
- Specified by:
doEnd in class AbstractPluginBrowserAware
- Parameters:
context - The test context.result - The result set.client - The browser.
- Throws:
PluginException - On execution errors.
doEnd
protected abstract void doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.Rotatable rotatable)
throws PluginException
- Perform an action on rotatable drivers.
- Parameters:
context - The context.result - The result.client - The client.rotatable - The rotatable driver.
- Throws:
PluginException - On processing errors.
Copyright © 2013. All rights reserved.