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 WebDriverWait<Void> |
waitAjax() |
static WebDriverWait<Void> |
waitAjax(org.openqa.selenium.WebDriver driver) |
static WebDriverWait<Void> |
waitGui() |
static WebDriverWait<Void> |
waitGui(org.openqa.selenium.WebDriver driver) |
static WebDriverWait<Void> |
waitModel() |
static WebDriverWait<Void> |
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 WebDriverWait<Void> waitAjax()
public static WebDriverWait<Void> waitAjax(org.openqa.selenium.WebDriver driver)
public static WebDriverWait<Void> waitGui()
public static WebDriverWait<Void> waitGui(org.openqa.selenium.WebDriver driver)
public static WebDriverWait<Void> waitModel()
public static WebDriverWait<Void> waitModel(org.openqa.selenium.WebDriver driver)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.