public final class Grid extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.openqa.selenium.remote.RemoteWebDriver |
driver() |
static long |
getExecutionTimeoutValue() |
static MobileTestSession |
getMobileTestSession() |
static RemoteNodeInformation |
getRemoteNodeInfo(String hostName,
int port,
org.openqa.selenium.remote.SessionId session)
For a given Session ID against a host on a particular port, this method returns the remote webdriver node and the
port to which the execution was redirected to by the hub.
|
static AbstractTestSession |
getTestSession() |
static ThreadLocal<Exception> |
getThreadLocalException()
Deprecated.
|
static ThreadLocal<AbstractTestSession> |
getThreadLocalTestSession() |
static ThreadLocal<org.openqa.selenium.remote.RemoteWebDriver> |
getThreadLocalWebDriver() |
static WebTestSession |
getWebTestSession() |
static void |
open(String url)
Helper method to load a URL in a browser.
|
public static ThreadLocal<org.openqa.selenium.remote.RemoteWebDriver> getThreadLocalWebDriver()
public static ThreadLocal<AbstractTestSession> getThreadLocalTestSession()
@Deprecated public static ThreadLocal<Exception> getThreadLocalException()
public static long getExecutionTimeoutValue()
Config.ConfigProperty.EXECUTION_TIMEOUT for the current session.public static org.openqa.selenium.remote.RemoteWebDriver driver()
RemoteWebDriver object which can be used with MobileTest and/or
WebTest annotated tests. Throws an IllegalStateException when there is no
RemoteWebDriver session active such as when called outside of a MobileTest or
WebTest flow.public static AbstractTestSession getTestSession()
AbstractTestSession object that represents the basic configurations for the currently running
@WebTest/@MobileTest annotated method.public static MobileTestSession getMobileTestSession()
MobileTestSession object that represents the App configurations for the currently running
@MobileTest annotated method.public static WebTestSession getWebTestSession()
WebTestSession object that represents the Web configurations for the currently running
@WebTest annotated method.public static void open(String url)
WebTest and
MobileTesturl - The url of the web application that needs to be opened.public static RemoteNodeInformation getRemoteNodeInfo(String hostName, int port, org.openqa.selenium.remote.SessionId session)
hostName - The name of the hub machineport - The port on which the hub machine is listening tosession - An object of type SessionId which represents the current session for a user.null on error.Copyright © 2016 PayPal Open Source. All rights reserved.