public final class ThreadLocalSingleWebDriverPool extends AbstractWebDriverPool
DEFAULT
Constructor and Description |
---|
ThreadLocalSingleWebDriverPool() |
Modifier and Type | Method and Description |
---|---|
void |
dismissAll()
Quits all the managed drivers and empties the pool.
|
void |
dismissDriver(org.openqa.selenium.WebDriver driver)
Quits the driver and removes it from the pool, if it is a managed instance.
|
org.openqa.selenium.WebDriver |
getDriver(URL hub,
org.openqa.selenium.Capabilities capabilities)
Returns a managed remote instance of WebDriver with the given capabilities.
|
boolean |
isEmpty()
Checks if the pool is empty.
|
createKey, newDriver, setDriverAlivenessChecker, setLocalDriverProvider, setRemoteDriverProvider
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDriver, getDriver, getDriver
public org.openqa.selenium.WebDriver getDriver(URL hub, org.openqa.selenium.Capabilities capabilities)
WebDriverPool
hub
- The Selenium Server Hub addresscapabilities
- The desired driver capabilitiespublic void dismissDriver(org.openqa.selenium.WebDriver driver)
WebDriverPool
driver
- The driver that is not in use anymore and should be dismissedpublic void dismissAll()
WebDriverPool
public boolean isEmpty()
WebDriverPool
Copyright © 2017. All rights reserved.