org.specrunner.webdriver.actions
Class AbstractPluginCheck
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.AbstractPluginFind
org.specrunner.webdriver.actions.AbstractPluginCheck
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
- Direct Known Subclasses:
- PluginCheck, PluginUncheck
public abstract class AbstractPluginCheck
- extends AbstractPluginFind
Partial implementation of actions in checkboxes.
- Author:
- Thiago Santos
|
Method Summary |
protected abstract void |
doSomething(org.openqa.selenium.WebElement checkbox)
Perform something with the checkbox. |
ActionType |
getActionType()
|
protected boolean |
isCheckbox(org.openqa.selenium.WebElement element)
Check if is checkbox. |
protected void |
process(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.WebElement[] elements)
Method delegation which receives the elements to be used by subclasses. |
| Methods inherited from class org.specrunner.webdriver.AbstractPluginBrowserAware |
doEnd, getBrowserName, getDir, getDownload, getInterval, getMaxwait, getWaitCondition, getWaitfor, 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 |
AbstractPluginCheck
public AbstractPluginCheck()
getActionType
public ActionType getActionType()
process
protected void process(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.WebElement[] elements)
throws PluginException
- Description copied from class:
AbstractPluginFind
- Method delegation which receives the elements to be used by subclasses.
- Specified by:
process in class AbstractPluginFind
- Parameters:
context - The test context.result - The result set.client - The browser.elements - The elements filtered by search strategy.
- Throws:
PluginException - On execution errors.
isCheckbox
protected boolean isCheckbox(org.openqa.selenium.WebElement element)
- Check if is checkbox.
- Parameters:
element - The element.
- Returns:
- true, if checkbox, false, otherwise.
doSomething
protected abstract void doSomething(org.openqa.selenium.WebElement checkbox)
- Perform something with the checkbox.
- Parameters:
checkbox - The element.
Copyright © 2013. All rights reserved.