Class WebDriverContext
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public class WebDriverContext implements AutoCloseable
The web driver context. Web page fetch tasks run in web driver contexts.
-
-
Constructor Summary
Constructors Constructor Description WebDriverContext(BrowserId browserId, WebDriverPoolManager driverPoolManager, ImmutableConfig unmodifiedConfig)
-
Method Summary
Modifier and Type Method Description BooleanisActive()BooleanisRetired()BooleanisReady()final BrowserIdgetBrowserId()final FetchResultrun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> browseFun)Run a web driver task. Unitmaintain()Unitclose()Closing call stack:PrivacyContextManager. -
-
Constructor Detail
-
WebDriverContext
WebDriverContext(BrowserId browserId, WebDriverPoolManager driverPoolManager, ImmutableConfig unmodifiedConfig)
-
-
Method Detail
-
getBrowserId
final BrowserId getBrowserId()
-
run
final FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> browseFun)
Run a web driver task. This method should not throw any WebDriverException.
-
-
-
-