|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.support.ThreadGuard
public class ThreadGuard
Multithreaded client code should use this to assert that it accesses webdriver in a thread-safe manner. Wrap WebDriver instances as follows: 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.
Constructor Summary | |
---|---|
ThreadGuard()
|
Method Summary | |
---|---|
static WebDriver |
protect(WebDriver actualWebDriver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadGuard()
Method Detail |
---|
public static WebDriver protect(WebDriver actualWebDriver)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |