|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public abstract class AbstractPluginFind
A partial implementation of a plugin which finds elements in pages to perform operations.
| Field Summary | |
|---|---|
static String |
FEATURE_FINDER_INSTANCE
Feature to set finderInstance. |
static String |
FEATURE_FINDER_TYPE
Feature to set finder type. |
protected String |
finder
The finder class name. |
protected IFinder |
finderInstance
A finder instance. |
| Fields inherited from class org.specrunner.webdriver.AbstractPluginBrowserAware |
|---|
FEATURE_DIR, FEATURE_INTERVAL, FEATURE_MAXWAIT, FEATURE_TIMEOUT, FEATURE_WAITFOR |
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
AbstractPluginFind()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
asString(org.openqa.selenium.WebElement element)
Show the element as Strings. |
protected void |
doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
Method delegation which receives the browser to be used by subclasses. |
String |
getFinder()
The finder type. |
IFinder |
getFinderInstance()
Sets the plugin finderInstance. |
IFinder |
getFinderInstance(IContext context)
Propagate parameters added to finderInstance. |
protected String |
getText(org.openqa.selenium.WebElement element)
Get the value of element. |
void |
initialize(IContext context)
|
protected abstract 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. |
void |
setFinder(String finder)
Set the finder type. |
void |
setFinderInstance(IFinder finder)
Set the finder. |
| 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.AbstractPluginValue |
|---|
getValue, getValue, isEval, setEval, setValue |
| Methods inherited from class org.specrunner.plugins.core.AbstractPluginScoped |
|---|
getScope, saveGlobal, saveLocal, saveStrict, setScope |
| Methods inherited from class org.specrunner.plugins.core.AbstractPluginNamed |
|---|
getName, setName |
| 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 |
| Methods inherited from class org.specrunner.parameters.core.ParameterHolder |
|---|
getParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.specrunner.parameters.IParameterHolder |
|---|
getParameters, setParameters |
| Methods inherited from interface org.specrunner.plugins.IActionType |
|---|
getActionType |
| Field Detail |
|---|
public static final String FEATURE_FINDER_TYPE
protected String finder
public static final String FEATURE_FINDER_INSTANCE
protected IFinder finderInstance
| Constructor Detail |
|---|
public AbstractPluginFind()
| Method Detail |
|---|
public String getFinder()
public void setFinder(String finder)
finder - The type.public IFinder getFinderInstance()
public void setFinderInstance(IFinder finder)
finder - A finder.
public IFinder getFinderInstance(IContext context)
throws PluginException
context - The context.
PluginException - On processing errors.
public void initialize(IContext context)
throws PluginException
initialize in interface IPlugininitialize in class AbstractPluginBrowserAwarePluginException
protected void doEnd(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client)
throws PluginException
AbstractPluginBrowserAware
doEnd in class AbstractPluginBrowserAwarecontext - The test context.result - The result set.client - The browser.
PluginException - On execution errors.
protected abstract void process(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.WebElement[] elements)
throws PluginException
context - The test context.result - The result set.client - The browser.elements - The elements filtered by search strategy.
PluginException - On execution errors.public String asString(org.openqa.selenium.WebElement element)
element - The element.
protected String getText(org.openqa.selenium.WebElement element)
element - The element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||