class CachingDriverFactory extends Object implements DriverFactory
| Type Params | Return Type | Name and description |
|---|---|---|
|
static WebDriver |
clearCache() |
|
static WebDriver |
clearCacheAndQuitDriver()Note: When using a perThread cache and executing multiple tests in parallel, it is possible to inadvertently quit a driver in one thread that is being used by another, depending on how your test runner handles parallel execution. |
|
static Object |
clearCacheCache() |
|
WebDriver |
getDriver() |
|
static CachingDriverFactory |
global(DriverFactory innerFactory, boolean quitOnShutdown) |
|
static CachingDriverFactory |
perThread(DriverFactory innerFactory, boolean quitOnShutdown) |
Note: When using a perThread cache and executing multiple tests in parallel, it is possible to inadvertently quit a driver in one thread that is being used by another, depending on how your test runner handles parallel execution. The only known case of this is in JUnit's `@BeforeAll` and `@AfterAll` lifecycle extension methods on multiple classes annotated with `@Execution(CONCURRENT)`, but there may be others. Implicit driver lifecycle management is your friend.
Groovy API Documentation for Geb 8.0.2-SNAPSHOT - Licensed under the Apache License, Version 2.0 - http://groovy.apache.org/geb/