public class WebDriverFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DRIVER |
static String |
REMOTE_DRIVER |
Constructor and Description |
---|
WebDriverFactory() |
WebDriverFactory(EnvironmentVariables environmentVariables) |
WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables) |
WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables,
FirefoxProfileEnhancer firefoxProfileEnhancer) |
WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables,
FirefoxProfileEnhancer firefoxProfileEnhancer,
FixtureProviderService fixtureProviderService) |
WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables,
FirefoxProfileEnhancer firefoxProfileEnhancer,
FixtureProviderService fixtureProviderService,
ElementProxyCreator proxyCreator) |
Modifier and Type | Method and Description |
---|---|
protected org.openqa.selenium.firefox.FirefoxProfile |
buildFirefoxProfile() |
protected org.openqa.selenium.firefox.FirefoxProfile |
createNewFirefoxProfile() |
protected org.openqa.selenium.firefox.internal.ProfilesIni |
getAllProfiles() |
Class<? extends org.openqa.selenium.WebDriver> |
getClassFor(SupportedWebDriver driverType) |
static String |
getDriverFrom(EnvironmentVariables environmentVariables) |
static String |
getDriverFrom(EnvironmentVariables environmentVariables,
String defaultDriver) |
void |
initElementsWithAjaxSupport(PageObject pageObject,
org.openqa.selenium.WebDriver driver,
int timeoutInSeconds)
Initialize a page object's fields using the specified WebDriver instance.
|
org.openqa.selenium.WebDriver |
newInstanceOf(SupportedWebDriver driverType)
Create a new WebDriver instance of a given type.
|
protected org.openqa.selenium.WebDriver |
newWebdriverInstance(Class<? extends org.openqa.selenium.WebDriver> driverClass)
This method is synchronized because multiple webdriver instances can be created in parallel.
|
protected void |
resizeBrowserTo(org.openqa.selenium.WebDriver driver,
int height,
int width) |
void |
setupFixtureServices() |
void |
shutdownFixtureServices() |
protected org.openqa.selenium.firefox.FirefoxProfile |
useExistingFirefoxProfile(File profileDirectory) |
boolean |
usesSauceLabs() |
public static final String DEFAULT_DRIVER
public static final String REMOTE_DRIVER
public WebDriverFactory()
public WebDriverFactory(EnvironmentVariables environmentVariables)
public WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory, EnvironmentVariables environmentVariables)
public WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory, EnvironmentVariables environmentVariables, FirefoxProfileEnhancer firefoxProfileEnhancer)
public WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory, EnvironmentVariables environmentVariables, FirefoxProfileEnhancer firefoxProfileEnhancer, FixtureProviderService fixtureProviderService)
public WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory, EnvironmentVariables environmentVariables, FirefoxProfileEnhancer firefoxProfileEnhancer, FixtureProviderService fixtureProviderService, ElementProxyCreator proxyCreator)
protected org.openqa.selenium.firefox.internal.ProfilesIni getAllProfiles()
public org.openqa.selenium.WebDriver newInstanceOf(SupportedWebDriver driverType)
public Class<? extends org.openqa.selenium.WebDriver> getClassFor(SupportedWebDriver driverType)
public boolean usesSauceLabs()
protected org.openqa.selenium.WebDriver newWebdriverInstance(Class<? extends org.openqa.selenium.WebDriver> driverClass)
driverClass
- public static String getDriverFrom(EnvironmentVariables environmentVariables, String defaultDriver)
public static String getDriverFrom(EnvironmentVariables environmentVariables)
public void setupFixtureServices() throws FixtureException
FixtureException
public void shutdownFixtureServices()
protected void resizeBrowserTo(org.openqa.selenium.WebDriver driver, int height, int width)
protected org.openqa.selenium.firefox.FirefoxProfile createNewFirefoxProfile()
protected org.openqa.selenium.firefox.FirefoxProfile useExistingFirefoxProfile(File profileDirectory)
protected org.openqa.selenium.firefox.FirefoxProfile buildFirefoxProfile()
public void initElementsWithAjaxSupport(PageObject pageObject, org.openqa.selenium.WebDriver driver, int timeoutInSeconds)
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.