public class WebDriverFacade extends Object implements org.openqa.selenium.WebDriver, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.interactions.HasInputDevices, org.openqa.selenium.JavascriptExecutor
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 |
proxiedWebDriver |
| Constructor and Description |
|---|
WebDriverFacade(Class<? extends org.openqa.selenium.WebDriver> driverClass,
WebDriverFactory webDriverFactory) |
| 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) |
String |
getCurrentUrl() |
Class<? extends org.openqa.selenium.WebDriver> |
getDriverClass() |
protected org.openqa.selenium.WebDriver |
getDriverInstance() |
org.openqa.selenium.interactions.Keyboard |
getKeyboard() |
org.openqa.selenium.interactions.Mouse |
getMouse() |
String |
getPageSource() |
org.openqa.selenium.WebDriver |
getProxiedDriver() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> target) |
String |
getTitle() |
String |
getWindowHandle() |
Set<String> |
getWindowHandles() |
boolean |
isEnabled() |
boolean |
isInstantiated() |
org.openqa.selenium.WebDriver.Options |
manage() |
org.openqa.selenium.WebDriver.Navigation |
navigate() |
protected org.openqa.selenium.WebDriver |
newProxyDriver() |
protected boolean |
proxyInstanciated() |
void |
quit() |
void |
reset() |
org.openqa.selenium.WebDriver.TargetLocator |
switchTo() |
public WebDriverFacade(Class<? extends org.openqa.selenium.WebDriver> driverClass, WebDriverFactory webDriverFactory)
public Class<? extends org.openqa.selenium.WebDriver> getDriverClass()
public org.openqa.selenium.WebDriver getProxiedDriver()
public boolean isEnabled()
public void reset()
protected org.openqa.selenium.WebDriver newProxyDriver()
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.WebDriverprotected 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 org.openqa.selenium.interactions.Keyboard getKeyboard()
getKeyboard in interface org.openqa.selenium.interactions.HasInputDevicespublic org.openqa.selenium.interactions.Mouse getMouse()
getMouse in interface org.openqa.selenium.interactions.HasInputDevicespublic Object executeScript(String script, Object... parameters)
executeScript in interface org.openqa.selenium.JavascriptExecutorCopyright © 2011–2014 Wakaleo Consulting. All rights reserved.