public class WebDriverHandle extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LIST_WAIT
name of the default explicit wait for list resolving
|
static long |
DEFAULT_TIMEOUT_SECONDS
duration of the default explicit wait used by
Resolvable during resolve |
static String |
DEFAULT_WAIT
name of the default explicit wait
|
static Map<String,String> |
DEFAULTS
Map with default properties:
seleniumUrl -- URL of a Selenium hub running on local machine, ignored when !this.isRemote().
|
| Constructor and Description |
|---|
WebDriverHandle(org.openqa.selenium.WebDriver driver,
boolean remote) |
WebDriverHandle(org.openqa.selenium.WebDriver driver,
boolean remote,
Map<String,org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver>> waits) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultWaits()
Add default waits to the internal waits collection.
|
org.openqa.selenium.WebDriver |
getDriver() |
Map<String,String> |
getInfo() |
org.openqa.selenium.JavascriptExecutor |
getJs() |
Map<String,org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver>> |
getWaits() |
boolean |
isRemote() |
void |
setInfo(Map<String,String> info)
sets map of key-value pairs with driver-related information
|
public static final long DEFAULT_TIMEOUT_SECONDS
Resolvable during resolvepublic static final String DEFAULT_WAIT
public static final String DEFAULT_LIST_WAIT
public WebDriverHandle(org.openqa.selenium.WebDriver driver,
boolean remote,
Map<String,org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver>> waits)
public WebDriverHandle(org.openqa.selenium.WebDriver driver,
boolean remote)
public org.openqa.selenium.WebDriver getDriver()
public boolean isRemote()
remote
(i.e. typically connected via Selenium hub),
false for local drivers (FirefoxDriver, ChromeDriver,...)public Map<String,String> getInfo()
public void setInfo(Map<String,String> info)
info - info map to setpublic org.openqa.selenium.JavascriptExecutor getJs()
public Map<String,org.openqa.selenium.support.ui.FluentWait<org.openqa.selenium.WebDriver>> getWaits()
WebDriverWaits.protected void addDefaultWaits()
Copyright © 2017. All Rights Reserved.