org.unitils.selenium
Class CapabilitiesFactory

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

public class CapabilitiesFactory
extends java.lang.Object

Creates the DesiredCapabilities for the WebDriver.

Since:
5/05/15
Author:
Willemijn Wouters

Constructor Summary
CapabilitiesFactory()
           
 
Method Summary
protected static org.openqa.selenium.remote.DesiredCapabilities createCapabilitesFirefox(java.lang.String proxyUrl, org.openqa.selenium.firefox.FirefoxProfile profile)
          Creates the DesiredCapabilities for firefox.
protected static org.openqa.selenium.remote.DesiredCapabilities createCapabilitiesChrome()
          Creates the DesiredCapabilities for the Chrome Webdriver.
protected static org.openqa.selenium.remote.DesiredCapabilities createCapabilitiesIE(java.lang.String proxyUrl)
          Creates the DesiredCapabilities for an IE WebDriver.
protected static org.openqa.selenium.logging.LoggingPreferences createLoggingPreferences()
          Creates a LoggingPreferences object with the values of the unitils.properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilitiesFactory

public CapabilitiesFactory()
Method Detail

createCapabilitesFirefox

protected static org.openqa.selenium.remote.DesiredCapabilities createCapabilitesFirefox(java.lang.String proxyUrl,
                                                                                         org.openqa.selenium.firefox.FirefoxProfile profile)
Creates the DesiredCapabilities for firefox.

Parameters:
proxyUrl -
profile -
Returns:
DesiredCapabilities

createCapabilitiesIE

protected static org.openqa.selenium.remote.DesiredCapabilities createCapabilitiesIE(java.lang.String proxyUrl)
Creates the DesiredCapabilities for an IE WebDriver.

Parameters:
proxyUrl -
Returns:
DesiredCapabilities

createCapabilitiesChrome

protected static org.openqa.selenium.remote.DesiredCapabilities createCapabilitiesChrome()
Creates the DesiredCapabilities for the Chrome Webdriver.

Returns:
DesiredCapabilities

createLoggingPreferences

protected static org.openqa.selenium.logging.LoggingPreferences createLoggingPreferences()
Creates a LoggingPreferences object with the values of the unitils.properties.

Returns:
LoggingPreferences


Copyright © 2015. All Rights Reserved.