public class WebDriverFactory extends Object implements org.springframework.beans.factory.FactoryBean<org.openqa.selenium.WebDriver>
WebDriver
based on the browser type that determines which WebDriver
implementation to use.
This factory is able to create instances of the WebDriver
however it is unable to destroy the beans and is up to deveopler to ensure that instance of
WebDrone are destroyed once finished.
| Constructor and Description |
|---|
WebDriverFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getChromeServerPath() |
String |
getGridUrl() |
String |
getIeServerPath() |
org.openqa.selenium.WebDriver |
getObject()
Get default remote fire fox driver.
|
org.openqa.selenium.WebDriver |
getObject(Browser browser) |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setChromeServerPath(String chromeServerPath) |
void |
setDownloadDirectory(String downloadDirectory) |
void |
setGridUrl(String gridUrl) |
void |
setIeServerPath(String ieServerPath) |
void |
setMimeTypes(String mimeTypes) |
public org.openqa.selenium.WebDriver getObject(Browser browser)
public String getGridUrl()
public void setGridUrl(String gridUrl)
public String getChromeServerPath()
public void setChromeServerPath(String chromeServerPath)
public String getIeServerPath()
public void setIeServerPath(String ieServerPath)
public void setDownloadDirectory(String downloadDirectory)
public void setMimeTypes(String mimeTypes)
public org.openqa.selenium.WebDriver getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.openqa.selenium.WebDriver>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.openqa.selenium.WebDriver>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.openqa.selenium.WebDriver>Copyright © 2015 Alfresco Software. All rights reserved.