public class ParameterizedWebDriverType extends WebDriverType<org.openqa.selenium.WebDriver>
WebDriverType implementation for a WebDriver created at runtime via configuration.
Subclasses can override to alter the configuration or change the implementation.
| Constructor and Description |
|---|
ParameterizedWebDriverType()
Default constructor to use standard global configuration.
|
ParameterizedWebDriverType(String testClassName)
Construct this instance to look for configuration for a specific test class.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.remote.DesiredCapabilities |
getDefaultDriverCapabilities()
.
|
org.openqa.selenium.WebDriver |
getDriverImplementation()
Return a new instance of the WebDriver for this type.
|
String |
getDriverTypeName()
.
|
protected void |
setSystemProperty()
Used to set any necessary system properties prior to the driver's construction.
|
getCapabilitiespublic ParameterizedWebDriverType()
public ParameterizedWebDriverType(String testClassName)
testClassName - the name of the test class. Nullable.public String getDriverTypeName()
getDriverTypeName in class WebDriverType<org.openqa.selenium.WebDriver>public org.openqa.selenium.WebDriver getDriverImplementation()
Return a new instance of the WebDriver for this type.
Must return a new instance each time - must not cache.
.getDriverImplementation in class WebDriverType<org.openqa.selenium.WebDriver>protected void setSystemProperty()
public org.openqa.selenium.remote.DesiredCapabilities getDefaultDriverCapabilities()
getDefaultDriverCapabilities in class WebDriverType<org.openqa.selenium.WebDriver>Copyright © 2018. All rights reserved.