public class DefaultSessionFactory extends Object implements SessionFactory
| Constructor and Description |
|---|
DefaultSessionFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(Map<String,String> options)
Cleans up the session - closed all taks
|
org.openqa.selenium.remote.DesiredCapabilities |
createCapabilities(Map<String,String> options) |
Map<String,String> |
createDefaultOptions() |
org.openqa.selenium.WebDriver |
createInnerDriver(Map<String,String> options,
org.openqa.selenium.remote.DesiredCapabilities capabilities) |
ExtWebDriver |
createNewSession(Map<String,String> options,
org.openqa.selenium.WebDriver wd) |
public void cleanup(Map<String,String> options) throws Exception
SessionFactorycleanup in interface SessionFactoryoptions - the options for cleaning upExceptionpublic org.openqa.selenium.remote.DesiredCapabilities createCapabilities(Map<String,String> options) throws Exception
createCapabilities in interface SessionFactoryoptions - the options you want the capabilities instance to haveExceptionpublic org.openqa.selenium.WebDriver createInnerDriver(Map<String,String> options, org.openqa.selenium.remote.DesiredCapabilities capabilities) throws Exception
createInnerDriver in interface SessionFactoryoptions - the options passed on to the webdriver instancecapabilities - the capabilities you want webdriver to haveExceptionpublic ExtWebDriver createNewSession(Map<String,String> options, org.openqa.selenium.WebDriver wd)
createNewSession in interface SessionFactoryoptions - options for the sessionwd - the instance of WebDriverpublic Map<String,String> createDefaultOptions()
createDefaultOptions in interface SessionFactoryCopyright © 2018. All rights reserved.