public abstract class AbstractDelegatingWebDriver extends Object implements org.openqa.selenium.WebDriver, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.JavascriptExecutor
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractDelegatingWebDriver.DelegatingWebElement |
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| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebDriver |
delegate
The WebDriver implementation to delegate operations to.
|
| Constructor and Description |
|---|
AbstractDelegatingWebDriver(org.openqa.selenium.WebDriver delegate)
Creates a delegating WebDriver around a WebDriver implementation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
executeAsyncScript(String script,
Object... args) |
Object |
executeScript(String script,
Object... args) |
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) |
String |
getCurrentUrl() |
org.openqa.selenium.WebDriver |
getDelegate() |
String |
getPageSource() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
String |
getTitle() |
String |
getWindowHandle() |
Set<String> |
getWindowHandles() |
org.openqa.selenium.WebDriver.Options |
manage() |
org.openqa.selenium.WebDriver.Navigation |
navigate() |
void |
quit() |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
protected org.openqa.selenium.WebDriver delegate
public AbstractDelegatingWebDriver(org.openqa.selenium.WebDriver delegate)
delegate - the WebDriver implementation instance to delegate operations
to.public org.openqa.selenium.WebDriver getDelegate()
public void close()
close in interface org.openqa.selenium.WebDriverWebDriver.close()public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
findElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebDriverWebDriver.findElement(org.openqa.selenium.By)public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebDriverWebDriver.findElements(org.openqa.selenium.By)public void get(String url)
get in interface org.openqa.selenium.WebDriverWebDriver.get(java.lang.String)public String getCurrentUrl()
getCurrentUrl in interface org.openqa.selenium.WebDriverWebDriver.getCurrentUrl()public String getPageSource()
getPageSource in interface org.openqa.selenium.WebDriverWebDriver.getPageSource()public String getTitle()
getTitle in interface org.openqa.selenium.WebDriverWebDriver.getTitle()public String getWindowHandle()
getWindowHandle in interface org.openqa.selenium.WebDriverWebDriver.getWindowHandle()public Set<String> getWindowHandles()
getWindowHandles in interface org.openqa.selenium.WebDriverWebDriver.getWindowHandles()public org.openqa.selenium.WebDriver.Options manage()
manage in interface org.openqa.selenium.WebDriverWebDriver.manage()public org.openqa.selenium.WebDriver.Navigation navigate()
navigate in interface org.openqa.selenium.WebDriverWebDriver.navigate()public org.openqa.selenium.WebDriver.TargetLocator switchTo()
switchTo in interface org.openqa.selenium.WebDriverWebDriver.switchTo()public void quit()
quit in interface org.openqa.selenium.WebDriverWebDriver.quit()public Object executeAsyncScript(String script, Object... args) throws org.openqa.selenium.WebDriverException
executeAsyncScript in interface org.openqa.selenium.JavascriptExecutororg.openqa.selenium.WebDriverExceptionJavascriptExecutor.executeAsyncScript(java.lang.String,
java.lang.Object[])public Object executeScript(String script, Object... args) throws org.openqa.selenium.WebDriverException
executeScript in interface org.openqa.selenium.JavascriptExecutororg.openqa.selenium.WebDriverExceptionJavascriptExecutor.executeScript(java.lang.String,
java.lang.Object[])public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> target)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionTakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)Copyright © 2015. All rights reserved.