org.unitils.selenium
Class WebDriverFactory

java.lang.Object
  extended by org.unitils.selenium.WebDriverFactory

public class WebDriverFactory
extends Object

Since:
1.0.0
Author:
Jeroen Horemans, Thomas De Rycke, Willemijn Wouters

Constructor Summary
WebDriverFactory()
           
 
Method Summary
protected static org.openqa.selenium.WebDriver createChromeDriver()
           
static org.openqa.selenium.WebDriver createDriver(BrowserChoice browserChoice, String downloadPath, String fileType)
          The webdriver will be created in this method.
static org.openqa.selenium.WebDriver createDriver(BrowserChoice browserChoice, String proxyUrl, String downloadPath, String fileType)
           
protected static org.openqa.selenium.WebDriver createFireFoxDriver(String downloadPath, String fileType)
           
protected static org.openqa.selenium.WebDriver createFireFoxDriver(String proxyUrl, String downloadPath, String fileType)
           
protected static org.openqa.selenium.WebDriver createInternetExplorerDriver(String proxyUrl)
           
protected static org.openqa.selenium.logging.LoggingPreferences createLoggingPreferences()
           
protected static File getFileFromProperty(String property)
           
protected static Properties getUnitilsProperties()
           
static void setLogPropertiesIE()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDriverFactory

public WebDriverFactory()
Method Detail

createDriver

public static org.openqa.selenium.WebDriver createDriver(BrowserChoice browserChoice,
                                                         String downloadPath,
                                                         String fileType)
The webdriver will be created in this method.

Parameters:
browserChoice -
downloadPath -
fileType -
Returns:
WebDriver

createLoggingPreferences

protected static org.openqa.selenium.logging.LoggingPreferences createLoggingPreferences()

createChromeDriver

protected static org.openqa.selenium.WebDriver createChromeDriver()

setLogPropertiesIE

public static void setLogPropertiesIE()

createInternetExplorerDriver

protected static org.openqa.selenium.WebDriver createInternetExplorerDriver(String proxyUrl)

createDriver

public static org.openqa.selenium.WebDriver createDriver(BrowserChoice browserChoice,
                                                         String proxyUrl,
                                                         String downloadPath,
                                                         String fileType)

createFireFoxDriver

protected static org.openqa.selenium.WebDriver createFireFoxDriver(String downloadPath,
                                                                   String fileType)

createFireFoxDriver

protected static org.openqa.selenium.WebDriver createFireFoxDriver(String proxyUrl,
                                                                   String downloadPath,
                                                                   String fileType)

getFileFromProperty

protected static File getFileFromProperty(String property)

getUnitilsProperties

protected static Properties getUnitilsProperties()


Copyright © 2014. All Rights Reserved.