public class WebDriverContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXECUTION_CONTEXT_KEY |
| Constructor and Description |
|---|
WebDriverContext(DriverType driverType,
org.openqa.selenium.WebDriver webDriver) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
getCurrentElement() |
DriverType |
getDriverType() |
org.openqa.selenium.WebElement |
getElementFromStash(String key) |
org.openqa.selenium.WebDriver |
getWebDriver() |
boolean |
hasFailed() |
void |
resetWebDriver() |
void |
setCurrentElement(org.openqa.selenium.WebElement currentElement) |
void |
setFailed() |
void |
shutdownWebDriver() |
void |
stashElement(String key,
org.openqa.selenium.WebElement element) |
boolean |
waitForCondition(Condition condition) |
org.openqa.selenium.WebElement |
waitForElement(org.openqa.selenium.By by) |
org.openqa.selenium.WebElement |
waitForElement(org.openqa.selenium.By by,
long timeOutSeconds) |
public static final String EXECUTION_CONTEXT_KEY
public WebDriverContext(DriverType driverType, org.openqa.selenium.WebDriver webDriver)
public org.openqa.selenium.WebElement getCurrentElement()
public void setCurrentElement(org.openqa.selenium.WebElement currentElement)
public org.openqa.selenium.WebDriver getWebDriver()
public DriverType getDriverType()
public void shutdownWebDriver()
public void resetWebDriver()
public boolean hasFailed()
public void setFailed()
public org.openqa.selenium.WebElement waitForElement(org.openqa.selenium.By by)
public org.openqa.selenium.WebElement waitForElement(org.openqa.selenium.By by,
long timeOutSeconds)
public boolean waitForCondition(Condition condition)
public void stashElement(String key, org.openqa.selenium.WebElement element)
public org.openqa.selenium.WebElement getElementFromStash(String key)
Copyright © 2016 Substeps. All rights reserved.