com.atlassian.webdriver.browsers.firefox
Class FirefoxBrowser

java.lang.Object
  extended by com.atlassian.webdriver.browsers.firefox.FirefoxBrowser

public final class FirefoxBrowser
extends Object

A helper utility for obtaining a FirefoxDriver.

Since:
2.0

Method Summary
static org.openqa.selenium.firefox.FirefoxDriver getFirefoxDriver()
          Gets the default FirefoxDriver that tries to use the default system paths for where the firefox binary should be
static org.openqa.selenium.firefox.FirefoxDriver getFirefoxDriver(com.atlassian.browsers.BrowserConfig browserConfig)
          Configures a FirefoxDriver based on the browserConfig
static org.openqa.selenium.firefox.FirefoxDriver getFirefoxDriver(String browserPath)
          Gets a firefox driver based on the browser path based in
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFirefoxDriver

public static org.openqa.selenium.firefox.FirefoxDriver getFirefoxDriver()
Gets the default FirefoxDriver that tries to use the default system paths for where the firefox binary should be

Returns:
Default configured FirefoxDriver

getFirefoxDriver

public static org.openqa.selenium.firefox.FirefoxDriver getFirefoxDriver(com.atlassian.browsers.BrowserConfig browserConfig)
Configures a FirefoxDriver based on the browserConfig

Parameters:
browserConfig - browser config that points to the binary path of the browser and optional profile
Returns:
A configured FirefoxDriver based on the browserConfig passed in

getFirefoxDriver

public static org.openqa.selenium.firefox.FirefoxDriver getFirefoxDriver(String browserPath)
Gets a firefox driver based on the browser path based in

Parameters:
browserPath - the path to the firefox binary to use for the firefox driver.
Returns:
A FirefoxDriver that is using the binary at the browserPath


Copyright © 2014 Atlassian. All rights reserved.