Class WebDriverManager
java.lang.Object
com.norconex.crawler.web.fetch.impl.webdriver.WebDriverManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebDriverReturns the Thread‑local WebDriver, creating (and registering) it on first call.voidExplicitly quit and remove the current thread's driver (optional — the driver manager will cleanup instances that were used by dead threads).<T> TWrap any WebDriver action so that on failure we reset and retry once.voidshutdown()
-
Constructor Details
-
WebDriverManager
-
-
Method Details
-
getDriver
public org.openqa.selenium.WebDriver getDriver()Returns the Thread‑local WebDriver, creating (and registering) it on first call.- Returns:
- web driver
-
quitDriver
public void quitDriver()Explicitly quit and remove the current thread's driver (optional — the driver manager will cleanup instances that were used by dead threads). -
safeCall
Wrap any WebDriver action so that on failure we reset and retry once.- Type Parameters:
T- action's return value type- Parameters:
action- action to perform with a web driver- Returns:
- action's return value
-
shutdown
public void shutdown()
-