org.specrunner.webdriver.assertions
Class PluginPresent
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.assertions.PluginPresent
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginPresent
- extends AbstractPluginFind
Check if an id, name, value, xpath, etc is present.
- Author:
- Thiago Santos
| 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 |
PluginPresent
public PluginPresent()
getActionType
public ActionType getActionType()
getCount
public Integer getCount()
- Gets the exact count match.
- Returns:
- The count.
setCount
public void setCount(Integer count)
- Sets the exact count match.
- Parameters:
count - The count.
getMin
public Integer getMin()
- Gets the minimum count.
- Returns:
- The minimum.
setMin
public void setMin(Integer min)
- Sets the minimum.
- Parameters:
min - The minimum.
getMax
public Integer getMax()
- Set maximum counter.
- Returns:
- The maximum.
setMax
public void setMax(Integer max)
- Sets the maximum.
- Parameters:
max - The maximum.
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.
- Overrides:
doEnd in class AbstractPluginFind
- Parameters:
context - The test context.result - The result set.client - The browser.
- Throws:
PluginException - On execution errors.
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.
Copyright © 2013. All rights reserved.