org.specrunner.webdriver.actions
Class PluginType
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.AbstractPluginFindSingle
org.specrunner.webdriver.actions.PluginType
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginType
- extends AbstractPluginFindSingle
ActionType a text in a given element.
- 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 |
PluginType
public PluginType()
getAppend
public Boolean getAppend()
- Get the append mode.
- Returns:
- true, if append is on, false, otherwise. Default is false.
setAppend
public void setAppend(Boolean append)
- To append text, without clear, set this true. Default is false.
- Parameters:
append - true, to append, false, otherwise.
getPosition
public Integer getPosition()
- Get the position to type text.
- Returns:
- The text position.
setPosition
public void setPosition(Integer position)
- Set the position to insert text.
- Parameters:
position - Index position to write.
getActionType
public ActionType getActionType()
process
protected void process(IContext context,
IResultSet result,
org.openqa.selenium.WebDriver client,
org.openqa.selenium.WebElement element)
throws PluginException
- Description copied from class:
AbstractPluginFindSingle
- Method delegation which receives the selected element to be used by
subclasses.
- Specified by:
process in class AbstractPluginFindSingle
- Parameters:
context - The test context.result - A result set.client - The browser.element - The selected element.
- Throws:
PluginException - On execution errors.
Copyright © 2013. All rights reserved.