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
SessionFactory
cleanup
in interface SessionFactory
options
- the options for cleaning upException
public org.openqa.selenium.remote.DesiredCapabilities createCapabilities(Map<String,String> options) throws Exception
createCapabilities
in interface SessionFactory
options
- the options you want the capabilities instance to haveException
public org.openqa.selenium.WebDriver createInnerDriver(Map<String,String> options, org.openqa.selenium.remote.DesiredCapabilities capabilities) throws Exception
createInnerDriver
in interface SessionFactory
options
- the options passed on to the webdriver instancecapabilities
- the capabilities you want webdriver to haveException
public ExtWebDriver createNewSession(Map<String,String> options, org.openqa.selenium.WebDriver wd)
createNewSession
in interface SessionFactory
options
- options for the sessionwd
- the instance of WebDriverpublic Map<String,String> createDefaultOptions()
createDefaultOptions
in interface SessionFactory
Copyright © 2018. All rights reserved.