|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.selenium.WebDriverFactory
public class WebDriverFactory
This class creates all the WebDrivers.
| Constructor Summary | |
|---|---|
WebDriverFactory()
|
|
| Method Summary | |
|---|---|
protected static org.openqa.selenium.WebDriver |
createChromeDriver()
This method creates a new ChromeDriver. |
static org.openqa.selenium.WebDriver |
createDriver(BrowserChoice browserChoice,
java.lang.String downloadPath,
java.lang.String fileType)
The webdriver will be created in this method. |
static org.openqa.selenium.WebDriver |
createDriver(BrowserChoice browserChoice,
java.lang.String proxyUrl,
java.lang.String downloadPath,
java.lang.String fileType)
checks which browser is chosen by the BrowserChoice and creates the WebDriver. |
protected static org.openqa.selenium.WebDriver |
createFireFoxDriver(java.lang.String downloadPath,
java.lang.String fileType)
Creates a FirefoxDriver. |
protected static org.openqa.selenium.WebDriver |
createFireFoxDriver(java.lang.String proxyUrl,
java.lang.String downloadPath,
java.lang.String fileType)
This method creates a new FirefoxDriver. |
protected static org.openqa.selenium.firefox.FirefoxProfile |
createFirefoxProfile(java.lang.String fileType,
java.lang.String downloadPath)
|
protected static org.openqa.selenium.WebDriver |
createInternetExplorerDriver(java.lang.String proxyUrl)
This method creates a new InternetExplorerDriver. |
protected static org.openqa.selenium.WebDriver |
createRemoteWebdriver(java.lang.String proxyUrl,
java.lang.String fileType,
java.lang.String downloadPath)
|
protected static CapabilitiesChoice |
getChosenCapabilities()
|
protected static java.io.File |
getFileFromProperty(java.lang.String property)
Checks if the value of the property is an already existing file, otherwise it tries to create a new file. |
protected static java.util.Properties |
getUnitilsProperties()
get the unitils.properties. |
static void |
setLogPropertiesIE()
This method sets the log levels for IE. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebDriverFactory()
| Method Detail |
|---|
public static org.openqa.selenium.WebDriver createDriver(BrowserChoice browserChoice,
java.lang.String downloadPath,
java.lang.String fileType)
browserChoice - : the chosen browser (see: WebDriverModule.BROWSER_NAME_KEY).downloadPath - : the location where all the files should be downloaded.fileType - : all the types that can be downloaded automatically.
WebDriverprotected static org.openqa.selenium.WebDriver createChromeDriver()
ChromeDriver.
WebDriverpublic static void setLogPropertiesIE()
protected static org.openqa.selenium.WebDriver createInternetExplorerDriver(java.lang.String proxyUrl)
InternetExplorerDriver.
proxyUrl - : the proxy url
WebDriver
public static org.openqa.selenium.WebDriver createDriver(BrowserChoice browserChoice,
java.lang.String proxyUrl,
java.lang.String downloadPath,
java.lang.String fileType)
BrowserChoice and creates the WebDriver.
browserChoice - : the chosen browser (see: WebDriverModule.BROWSER_NAME_KEY).proxyUrl - : the proxy urldownloadPath - : the location where all the files should be downloaded.fileType - : all the types that can be downloaded automatically.
WebDriver
protected static org.openqa.selenium.WebDriver createFireFoxDriver(java.lang.String downloadPath,
java.lang.String fileType)
FirefoxDriver.
downloadPath - : the location where all the files should be downloaded.fileType - : all the types that can be downloaded automatically.
WebDriver
protected static org.openqa.selenium.WebDriver createFireFoxDriver(java.lang.String proxyUrl,
java.lang.String downloadPath,
java.lang.String fileType)
FirefoxDriver.
proxyUrl - : the proxy urldownloadPath - : the location where all the files should be downloaded.fileType - : all the types that can be downloaded automatically.
WebDriver
protected static org.openqa.selenium.firefox.FirefoxProfile createFirefoxProfile(java.lang.String fileType,
java.lang.String downloadPath)
protected static org.openqa.selenium.WebDriver createRemoteWebdriver(java.lang.String proxyUrl,
java.lang.String fileType,
java.lang.String downloadPath)
protected static CapabilitiesChoice getChosenCapabilities()
protected static java.io.File getFileFromProperty(java.lang.String property)
property - : the name of the property in the untils.property.
Fileprotected static java.util.Properties getUnitilsProperties()
Properties : all the properties defined in the unitils.properties, unitils-local.properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||