public class ThreadGuard
extends java.lang.Object
WebDriver driver = ThreadGuard.protect(new FirefoxDriver());Threading issues related to incorrect client threading may have mysterious and hard to diagnose errors. Using this wrapper prevents this category of errors. It is recommended for all multithreaded usage. This class has no overhead of any importance.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ThreadGuard.WebDriverInvocationHandler |
Constructor and Description |
---|
ThreadGuard() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Class<?>[] |
getInterfaces(java.lang.Object target) |
static org.openqa.selenium.WebDriver |
protect(org.openqa.selenium.WebDriver actualWebDriver) |