public class DefaultWebDriverFactory extends java.lang.Object implements WebDriverFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLIENT_PROPERTIES_KEY
Key which holds the reference to an property-file which could be read
from
ClientProperties. |
| Constructor and Description |
|---|
DefaultWebDriverFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(java.util.Map<java.lang.String,java.lang.String> options)
Cleans up the session - closed all taks
|
org.openqa.selenium.remote.DesiredCapabilities |
createCapabilities(java.util.Map<java.lang.String,java.lang.String> options) |
java.util.Map<java.lang.String,java.lang.String> |
createDefaultOptions() |
org.openqa.selenium.WebDriver |
createWebDriver(java.util.Map<java.lang.String,java.lang.String> options,
org.openqa.selenium.remote.DesiredCapabilities capabilities) |
public static final java.lang.String CLIENT_PROPERTIES_KEY
ClientProperties.public void cleanup(java.util.Map<java.lang.String,java.lang.String> options)
throws java.lang.Exception
WebDriverFactorycleanup in interface WebDriverFactoryoptions - the options for cleaning upjava.lang.Exceptionpublic org.openqa.selenium.remote.DesiredCapabilities createCapabilities(java.util.Map<java.lang.String,java.lang.String> options)
throws java.lang.Exception
createCapabilities in interface WebDriverFactoryoptions - the options you want the capabilities instance to havejava.lang.Exceptionpublic org.openqa.selenium.WebDriver createWebDriver(java.util.Map<java.lang.String,java.lang.String> options,
org.openqa.selenium.remote.DesiredCapabilities capabilities)
throws java.io.IOException
createWebDriver in interface WebDriverFactoryoptions - the options passed on to the webdriver instancecapabilities - the capabilities you want webdriver to havejava.io.IOException - can't access the browser.public java.util.Map<java.lang.String,java.lang.String> createDefaultOptions()
createDefaultOptions in interface WebDriverFactoryCopyright © 2017 PPI AG. All rights reserved.