public class WebDriverFacade extends Object implements org.openqa.selenium.WebDriver, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.JavascriptExecutor, org.openqa.selenium.HasCapabilities, ConfigurableTimeouts, org.openqa.selenium.interactions.Interactive, org.openqa.selenium.HasAuthentication
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
proxiedWebDriver |
| Constructor and Description |
|---|
WebDriverFacade(Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory) |
WebDriverFacade(Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory,
org.openqa.selenium.WebDriver proxiedWebDriver,
Duration implicitTimeout) |
WebDriverFacade(org.openqa.selenium.WebDriver driver,
WebDriverFactory webDriverFactory) |
WebDriverFacade(org.openqa.selenium.WebDriver driver,
WebDriverFactory webDriverFactory,
EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTakeScreenshots() |
void |
close() |
Object |
executeAsyncScript(String script,
Object... parameters) |
Object |
executeScript(String script,
Object... parameters) |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
void |
get(String url) |
org.openqa.selenium.Capabilities |
getCapabilities() |
Duration |
getCurrentImplicitTimeout() |
String |
getCurrentUrl() |
org.openqa.selenium.devtools.DevTools |
getDevTools() |
Class<? extends org.openqa.selenium.WebDriver> |
getDriverClass() |
protected org.openqa.selenium.WebDriver |
getDriverInstance() |
String |
getDriverName() |
String |
getPageSource() |
org.openqa.selenium.WebDriver |
getProxiedDriver() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
String |
getTitle() |
String |
getWindowHandle() |
Set<String> |
getWindowHandles() |
boolean |
hasDevTools()
Check whether the underlying driver supports DevTools
|
boolean |
isAProxyFor(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 |
perform(Collection<org.openqa.selenium.interactions.Sequence> actions) |
protected boolean |
proxyInstanciated() |
void |
quit() |
void |
register(Predicate<URI> whenThisMatches,
Supplier<org.openqa.selenium.Credentials> useTheseCredentials)
Registers a check for whether a set of Credentials should be used for a particular site, identified by its URI.
|
void |
register(Supplier<org.openqa.selenium.Credentials> alwaysUseTheseCredentials)
As register(Predicate, Supplier) but attempts to apply the credentials for any request for authorization.
|
void |
reset() |
void |
resetInputState() |
Duration |
resetTimeouts() |
void |
setImplicitTimeout(Duration implicitTimeout) |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
String |
toString() |
WebDriverFacade |
withOptions(String options) |
WebDriverFacade |
withTimeoutOf(Duration implicitTimeout) |
public WebDriverFacade(Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory)
public WebDriverFacade(org.openqa.selenium.WebDriver driver,
WebDriverFactory webDriverFactory)
public WebDriverFacade(org.openqa.selenium.WebDriver driver,
WebDriverFactory webDriverFactory,
EnvironmentVariables environmentVariables)
public WebDriverFacade(Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory, org.openqa.selenium.WebDriver proxiedWebDriver, Duration implicitTimeout)
public WebDriverFacade withTimeoutOf(Duration implicitTimeout)
public 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.TakesScreenshotpublic void get(String url)
get in interface org.openqa.selenium.WebDriverpublic String getCurrentUrl()
getCurrentUrl in interface org.openqa.selenium.WebDriverpublic String getTitle()
getTitle in interface org.openqa.selenium.WebDriverpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebDriverpublic String getPageSource()
getPageSource in interface org.openqa.selenium.WebDriverpublic void setImplicitTimeout(Duration implicitTimeout)
setImplicitTimeout in interface ConfigurableTimeoutspublic Duration getCurrentImplicitTimeout()
getCurrentImplicitTimeout in interface ConfigurableTimeoutspublic Duration resetTimeouts()
resetTimeouts in interface ConfigurableTimeoutsprotected org.openqa.selenium.WebDriver getDriverInstance()
public void close()
close in interface org.openqa.selenium.WebDriverpublic void quit()
quit in interface org.openqa.selenium.WebDriverprotected boolean proxyInstanciated()
public Set<String> getWindowHandles()
getWindowHandles in interface org.openqa.selenium.WebDriverpublic String getWindowHandle()
getWindowHandle in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.TargetLocator switchTo()
switchTo in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.Navigation navigate()
navigate in interface org.openqa.selenium.WebDriverpublic org.openqa.selenium.WebDriver.Options manage()
manage in interface org.openqa.selenium.WebDriverpublic boolean canTakeScreenshots()
public boolean isInstantiated()
public Object executeScript(String script, Object... parameters)
executeScript in interface org.openqa.selenium.JavascriptExecutorpublic Object executeAsyncScript(String script, Object... parameters)
executeAsyncScript in interface org.openqa.selenium.JavascriptExecutorpublic org.openqa.selenium.Capabilities getCapabilities()
getCapabilities in interface org.openqa.selenium.HasCapabilitiespublic String getDriverName()
public WebDriverFacade withOptions(String options)
public boolean isAProxyFor(Class<? extends org.openqa.selenium.WebDriver> somedriverClass)
public boolean isDisabled()
public void perform(Collection<org.openqa.selenium.interactions.Sequence> actions)
perform in interface org.openqa.selenium.interactions.Interactivepublic void resetInputState()
resetInputState in interface org.openqa.selenium.interactions.Interactivepublic boolean hasDevTools()
public org.openqa.selenium.devtools.DevTools getDevTools()
public void register(Predicate<URI> whenThisMatches, Supplier<org.openqa.selenium.Credentials> useTheseCredentials)
register in interface org.openqa.selenium.HasAuthenticationpublic void register(Supplier<org.openqa.selenium.Credentials> alwaysUseTheseCredentials)
register in interface org.openqa.selenium.HasAuthenticationCopyright © 2022. All rights reserved.