public class WebDriverFacade extends java.lang.Object implements org.openqa.selenium.WebDriver, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.interactions.HasInputDevices, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.HasCapabilities, ConfigurableTimeouts
org.openqa.selenium.WebDriver.ImeHandler, org.openqa.selenium.WebDriver.Navigation, org.openqa.selenium.WebDriver.Options, org.openqa.selenium.WebDriver.TargetLocator, org.openqa.selenium.WebDriver.Timeouts, org.openqa.selenium.WebDriver.Window
Constructor and Description |
---|
WebDriverFacade(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory) |
WebDriverFacade(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory,
net.thucydides.core.util.EnvironmentVariables environmentVariables) |
WebDriverFacade(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory,
org.openqa.selenium.WebDriver proxiedWebDriver,
java.time.Duration implicitTimeout) |
WebDriverFacade(org.openqa.selenium.WebDriver driver,
WebDriverFactory webDriverFactory,
net.thucydides.core.util.EnvironmentVariables environmentVariables) |
Modifier and Type | Method and Description |
---|---|
boolean |
canTakeScreenshots() |
void |
close() |
java.lang.Object |
executeAsyncScript(java.lang.String script,
java.lang.Object... parameters) |
java.lang.Object |
executeScript(java.lang.String script,
java.lang.Object... parameters) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
void |
get(java.lang.String url) |
org.openqa.selenium.Capabilities |
getCapabilities() |
java.time.Duration |
getCurrentImplicitTimeout() |
java.lang.String |
getCurrentUrl() |
java.lang.Class<? extends org.openqa.selenium.WebDriver> |
getDriverClass() |
java.lang.String |
getDriverName() |
org.openqa.selenium.interactions.Keyboard |
getKeyboard() |
org.openqa.selenium.interactions.Mouse |
getMouse() |
java.lang.String |
getPageSource() |
org.openqa.selenium.WebDriver |
getProxiedDriver() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
java.lang.String |
getTitle() |
java.lang.String |
getWindowHandle() |
java.util.Set<java.lang.String> |
getWindowHandles() |
boolean |
isAProxyFor(java.lang.Class<? extends org.openqa.selenium.WebDriver> somedriverClass) |
boolean |
isDisabled() |
boolean |
isEnabled() |
boolean |
isInstantiated() |
org.openqa.selenium.WebDriver.Options |
manage() |
org.openqa.selenium.WebDriver.Navigation |
navigate() |
void |
quit() |
void |
reset() |
java.time.Duration |
resetTimeouts() |
void |
setImplicitTimeout(java.time.Duration implicitTimeout) |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
java.lang.String |
toString() |
WebDriverFacade |
withOptions(java.lang.String options) |
WebDriverFacade |
withTimeoutOf(java.time.Duration implicitTimeout) |
public WebDriverFacade(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory)
public WebDriverFacade(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory, net.thucydides.core.util.EnvironmentVariables environmentVariables)
public WebDriverFacade(org.openqa.selenium.WebDriver driver, WebDriverFactory webDriverFactory, net.thucydides.core.util.EnvironmentVariables environmentVariables)
public WebDriverFacade(java.lang.Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory, org.openqa.selenium.WebDriver proxiedWebDriver, java.time.Duration implicitTimeout)
public WebDriverFacade withTimeoutOf(java.time.Duration implicitTimeout)
public java.lang.Class<? extends org.openqa.selenium.WebDriver> getDriverClass()
public org.openqa.selenium.WebDriver getProxiedDriver()
public boolean isEnabled()
public void reset()
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
getScreenshotAs
in interface org.openqa.selenium.TakesScreenshot
public void get(java.lang.String url)
get
in interface org.openqa.selenium.WebDriver
public java.lang.String getCurrentUrl()
getCurrentUrl
in interface org.openqa.selenium.WebDriver
public java.lang.String getTitle()
getTitle
in interface org.openqa.selenium.WebDriver
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebDriver
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement
in interface org.openqa.selenium.SearchContext
findElement
in interface org.openqa.selenium.WebDriver
public java.lang.String getPageSource()
getPageSource
in interface org.openqa.selenium.WebDriver
public void setImplicitTimeout(java.time.Duration implicitTimeout)
setImplicitTimeout
in interface ConfigurableTimeouts
public java.time.Duration getCurrentImplicitTimeout()
getCurrentImplicitTimeout
in interface ConfigurableTimeouts
public java.time.Duration resetTimeouts()
resetTimeouts
in interface ConfigurableTimeouts
public void close()
close
in interface org.openqa.selenium.WebDriver
public void quit()
quit
in interface org.openqa.selenium.WebDriver
public java.util.Set<java.lang.String> getWindowHandles()
getWindowHandles
in interface org.openqa.selenium.WebDriver
public java.lang.String getWindowHandle()
getWindowHandle
in interface org.openqa.selenium.WebDriver
public org.openqa.selenium.WebDriver.TargetLocator switchTo()
switchTo
in interface org.openqa.selenium.WebDriver
public org.openqa.selenium.WebDriver.Navigation navigate()
navigate
in interface org.openqa.selenium.WebDriver
public org.openqa.selenium.WebDriver.Options manage()
manage
in interface org.openqa.selenium.WebDriver
public boolean canTakeScreenshots()
public boolean isInstantiated()
public org.openqa.selenium.interactions.Keyboard getKeyboard()
getKeyboard
in interface org.openqa.selenium.interactions.HasInputDevices
public org.openqa.selenium.interactions.Mouse getMouse()
getMouse
in interface org.openqa.selenium.interactions.HasInputDevices
public java.lang.Object executeScript(java.lang.String script, java.lang.Object... parameters)
executeScript
in interface org.openqa.selenium.JavascriptExecutor
public java.lang.Object executeAsyncScript(java.lang.String script, java.lang.Object... parameters)
executeAsyncScript
in interface org.openqa.selenium.JavascriptExecutor
public org.openqa.selenium.Capabilities getCapabilities()
getCapabilities
in interface org.openqa.selenium.HasCapabilities
public java.lang.String getDriverName()
public java.lang.String toString()
toString
in class java.lang.Object
public WebDriverFacade withOptions(java.lang.String options)
public boolean isAProxyFor(java.lang.Class<? extends org.openqa.selenium.WebDriver> somedriverClass)
public boolean isDisabled()