|
||||||||||
| 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.webdriver.PluginBrowser
public class PluginBrowser
Create a web driver instance.
| Field Summary | |
|---|---|
static String |
BROWSER_NAME
Default browser name. |
static String |
BROWSER_TYPE
Suffix of browser type. |
static String |
FEATURE_RECORDING
Feature to enable browser recording. |
static String |
FEATURE_REUSE
Feature to set web driver reuse. |
static String |
FEATURE_WEBDRIVER_FACTORY
Feature to set webdriver factory class name. |
static String |
FEATURE_WEBDRIVER_INSTANCE
Feature to set web driver instance. |
static String |
FEATURE_WEBDRIVER_TYPE
Feature to set web driver class name. |
protected String |
webdriver
The web driver class name. |
protected String |
webdriverfactory
The web driver factory. |
protected org.openqa.selenium.WebDriver |
webdriverInstance
The web driver instance. |
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
PluginBrowser()
Creates a browser. |
|
| Method Summary | |
|---|---|
ENext |
doStart(IContext context,
IResultSet result)
|
ActionType |
getActionType()
|
Boolean |
getRecording()
Get the recording status. true, for recording, false, otherwise. |
Boolean |
getReuse()
Gets the reuse status. |
String |
getWebdriver()
Gets web driver class name. |
String |
getWebdriverfactory()
Gets web driver factory class name. |
org.openqa.selenium.WebDriver |
getWebdriverInstance()
Gets the web driver instance. |
void |
initialize(IContext context)
|
protected void |
save(IContext context,
org.openqa.selenium.WebDriver driver)
Save browser to the context. |
void |
setRecording(Boolean recording)
Sets the recording status. |
void |
setReuse(Boolean reuse)
Set reuse status. |
void |
setWebdriver(String webdriver)
Sets class name. |
void |
setWebdriverfactory(String webdriverfactory)
The web driver factory class name. |
void |
setWebdriverInstance(org.openqa.selenium.WebDriver webdriverInstance)
Set the webdriver instance. |
| 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, doEnd, 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 |
| Field Detail |
|---|
public static final String BROWSER_NAME
public static final String BROWSER_TYPE
public static final String FEATURE_RECORDING
public static final String FEATURE_WEBDRIVER_TYPE
protected String webdriver
public static final String FEATURE_WEBDRIVER_FACTORY
protected String webdriverfactory
public static final String FEATURE_WEBDRIVER_INSTANCE
protected org.openqa.selenium.WebDriver webdriverInstance
public static final String FEATURE_REUSE
| Constructor Detail |
|---|
public PluginBrowser()
| Method Detail |
|---|
public Boolean getRecording()
public void setRecording(Boolean recording)
recording - The status.public String getWebdriver()
public void setWebdriver(String webdriver)
webdriver - The class name.public String getWebdriverfactory()
IWebDriverFactory.
public void setWebdriverfactory(String webdriverfactory)
webdriverfactory - The driver factory.public org.openqa.selenium.WebDriver getWebdriverInstance()
public void setWebdriverInstance(org.openqa.selenium.WebDriver webdriverInstance)
webdriverInstance - The instance.public Boolean getReuse()
public void setReuse(Boolean reuse)
reuse - Reuse status.public ActionType getActionType()
public void initialize(IContext context)
throws PluginException
initialize in interface IPlugininitialize in class AbstractPluginPluginException
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
doStart in interface IPlugindoStart in class AbstractPluginPluginException
protected void save(IContext context,
org.openqa.selenium.WebDriver driver)
context - The context.driver - The driver.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||