|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.thucydides.core.webdriver.WebDriverFactory
public class WebDriverFactory
Provides an instance of a supported WebDriver. When you instanciate a Webdriver instance for Firefox or Chrome, it opens a new browser. We
| Constructor Summary | |
|---|---|
WebDriverFactory()
|
|
WebDriverFactory(EnvironmentVariables environmentVariables)
|
|
WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables)
|
|
WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables,
FirefoxProfileEnhancer firefoxProfileEnhancer)
|
|
| Method Summary | |
|---|---|
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 void |
initElementsWithAjaxSupport(Object pageObject,
org.openqa.selenium.WebDriver driver)
Initialize a page object's fields using the specified WebDriver instance. |
static void |
initElementsWithAjaxSupport(Object pageObject,
org.openqa.selenium.WebDriver driver,
int timeout)
|
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)
|
protected org.openqa.selenium.firefox.FirefoxProfile |
useExistingFirefoxProfile(File profileDirectory)
|
boolean |
usesSauceLabs()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebDriverFactory()
public WebDriverFactory(EnvironmentVariables environmentVariables)
public WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables)
public WebDriverFactory(WebdriverInstanceFactory webdriverInstanceFactory,
EnvironmentVariables environmentVariables,
FirefoxProfileEnhancer firefoxProfileEnhancer)
| Method Detail |
|---|
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 -
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)
public static void initElementsWithAjaxSupport(Object pageObject,
org.openqa.selenium.WebDriver driver)
public static void initElementsWithAjaxSupport(Object pageObject,
org.openqa.selenium.WebDriver driver,
int timeout)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||