public class WebDriverFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DRIVER |
static java.lang.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 |
---|---|
org.openqa.selenium.support.ui.Duration |
currentTimeoutFor(org.openqa.selenium.WebDriver proxiedDriver) |
java.lang.Class<? extends org.openqa.selenium.WebDriver> |
getClassFor(SupportedWebDriver driverType) |
org.openqa.selenium.support.ui.Duration |
getDefaultImplicitTimeout() |
static java.lang.String |
getDriverFrom(EnvironmentVariables environmentVariables) |
static java.lang.String |
getDriverFrom(EnvironmentVariables environmentVariables,
java.lang.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.
|
void |
resetTimeouts(org.openqa.selenium.WebDriver proxiedDriver) |
void |
setTimeouts(org.openqa.selenium.WebDriver proxiedDriver,
org.openqa.selenium.support.ui.Duration implicitTimeout) |
void |
setupFixtureServices() |
void |
shutdownFixtureServices() |
boolean |
usesBrowserStack() |
boolean |
usesSauceLabs() |
public static final java.lang.String DEFAULT_DRIVER
public static final java.lang.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)
public org.openqa.selenium.WebDriver newInstanceOf(SupportedWebDriver driverType)
public java.lang.Class<? extends org.openqa.selenium.WebDriver> getClassFor(SupportedWebDriver driverType)
public boolean usesSauceLabs()
public boolean usesBrowserStack()
public static java.lang.String getDriverFrom(EnvironmentVariables environmentVariables, java.lang.String defaultDriver)
public static java.lang.String getDriverFrom(EnvironmentVariables environmentVariables)
public void setupFixtureServices() throws FixtureException
FixtureException
public void shutdownFixtureServices()
public void initElementsWithAjaxSupport(PageObject pageObject, org.openqa.selenium.WebDriver driver, int timeoutInSeconds)
public void setTimeouts(org.openqa.selenium.WebDriver proxiedDriver, org.openqa.selenium.support.ui.Duration implicitTimeout)
public org.openqa.selenium.support.ui.Duration currentTimeoutFor(org.openqa.selenium.WebDriver proxiedDriver)
public void resetTimeouts(org.openqa.selenium.WebDriver proxiedDriver)
public org.openqa.selenium.support.ui.Duration getDefaultImplicitTimeout()