org.specrunner.webdriver.actions
Class PluginStartIn
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.AbstractPluginUrlAware
org.specrunner.webdriver.actions.PluginStartIn
- All Implemented Interfaces:
- IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin
public class PluginStartIn
- extends AbstractPluginUrlAware
Sets initial page of a given driver. Once set, relative references can be
made.
- Author:
- Thiago Santos
|
Field Summary |
static String |
START_IN
Start reference for a given browser. |
| 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 |
START_IN
public static final String START_IN
- Start reference for a given browser.
- See Also:
- Constant Field Values
PluginStartIn
public PluginStartIn()
getProvider
public String getProvider()
- The
IStringProvider which can give information about the
start url.
- Returns:
- The provider class name.
setProvider
public void setProvider(String provider)
- The provide class name.
- Parameters:
provider - The provider.
getActionType
public ActionType getActionType()
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.
getBaseFromProvider
protected String getBaseFromProvider(IContext context)
throws Exception
- Get the URL from a provider.
- Parameters:
context - The context.
- Returns:
- The provider url.
- Throws:
Exception - On provider action errors.
getBaseForBrowser
public static String getBaseForBrowser(String browserName)
- Gets the start URL for a given browser name.
- Parameters:
browserName - The browser name.
- Returns:
- The browser start in name to be used in context lookups.
Copyright © 2013. All rights reserved.