public class Graphene extends Object
| Constructor and Description |
|---|
Graphene() |
| Modifier and Type | Method and Description |
|---|---|
static AttributeConditionFactory |
attribute(org.openqa.selenium.WebElement element,
String attribute)
Returns an attribute condition factory which can be used to formulate
conditions related to the given attribute.
|
static ElementConditionFactory |
element(org.openqa.selenium.By locator)
Returns an element condition factory which can be used to formulate
conditions related to the element determined by the given locater.
|
static ElementConditionFactory |
element(org.openqa.selenium.WebElement element)
Returns an element condition factory which can be used to formulate
conditions related to the given element.
|
static <T> T |
guardHttp(T target)
Returns the guarded object checking whether the HTTP request is done during
each method invocation.
|
static <T> T |
guardNoRequest(T target)
Returns the guarded object checking that no request is done during
each method invocation.
|
static <T> T |
guardXhr(T target)
Returns the guarded object checking whether the XHR (Ajax) request is done during
each method invocation.
|
static org.openqa.selenium.support.ui.WebDriverWait |
waitAjax() |
static org.openqa.selenium.support.ui.WebDriverWait |
waitAjax(org.openqa.selenium.WebDriver driver) |
static org.openqa.selenium.support.ui.WebDriverWait |
waitGui() |
static org.openqa.selenium.support.ui.WebDriverWait |
waitGui(org.openqa.selenium.WebDriver driver) |
static org.openqa.selenium.support.ui.WebDriverWait |
waitModel() |
static org.openqa.selenium.support.ui.WebDriverWait |
waitModel(org.openqa.selenium.WebDriver driver) |
public static AttributeConditionFactory attribute(org.openqa.selenium.WebElement element, String attribute)
element - element which the attribute belongs toattribute - attribute namepublic static ElementConditionFactory element(org.openqa.selenium.WebElement element)
element - public static ElementConditionFactory element(org.openqa.selenium.By locator)
locator - public static <T> T guardHttp(T target)
RequestGuardException is thrown.T - type of the given targettarget - object to be guardedpublic static <T> T guardNoRequest(T target)
RequestGuardException is thrown.T - type of the given targettarget - object to be guardedpublic static <T> T guardXhr(T target)
RequestGuardException is thrown.T - type of the given targettarget - object to be guardedpublic static org.openqa.selenium.support.ui.WebDriverWait waitAjax()
public static org.openqa.selenium.support.ui.WebDriverWait waitAjax(org.openqa.selenium.WebDriver driver)
public static org.openqa.selenium.support.ui.WebDriverWait waitGui()
public static org.openqa.selenium.support.ui.WebDriverWait waitGui(org.openqa.selenium.WebDriver driver)
public static org.openqa.selenium.support.ui.WebDriverWait waitModel()
public static org.openqa.selenium.support.ui.WebDriverWait waitModel(org.openqa.selenium.WebDriver driver)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.