|
Graphene WebDriver: Implementation 2.0.0.Alpha1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.arquillian.graphene.context.GrapheneContext
public final class GrapheneContext
Class for keeping thread local context of WebDriver.
Provides getProxy() method for accessing that context in model of your tests.
Proxy specifically handles the situations when no context is set - in this situation, runtime exception with NullPointerException cause is thrown.
| Method Summary | ||
|---|---|---|
static org.openqa.selenium.WebDriver |
getProxy()
Returns the instance of proxy to thread local context of WebDriver |
|
static
|
getProxyForDriver(Class<T> webDriverImplClass)
Returns the instance of proxy to thread local context of WebDriver, the proxy handles the same interfaces which implements provided class. |
|
static
|
getProxyForInterfaces(Class<?>... interfaces)
Returns the instance of proxy to thread local context of WebDriver, the proxy handles all the interfaces provided as parameter. |
|
static boolean |
isInitialized()
Returns true if the context is initialized |
|
static void |
reset()
Resets the WebDriver context for current thread |
|
static void |
set(org.openqa.selenium.WebDriver driver)
Sets the WebDriver context for current thread |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void set(org.openqa.selenium.WebDriver driver)
driver - the WebDriver instance
IllegalArgumentException - when provided WebDriver instance is nullpublic static void reset()
public static boolean isInitialized()
public static org.openqa.selenium.WebDriver getProxy()
public static <T extends org.openqa.selenium.WebDriver> T getProxyForDriver(Class<T> webDriverImplClass)
public static <T extends org.openqa.selenium.WebDriver> T getProxyForInterfaces(Class<?>... interfaces)
|
Graphene WebDriver: Implementation 2.0.0.Alpha1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||