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)
Deprecated.
|
static <T> T |
createPageFragment(Class<T> clazz,
org.openqa.selenium.WebElement root) |
static ElementConditionFactory |
element(org.openqa.selenium.By locator)
Deprecated.
|
static ElementConditionFactory |
element(org.openqa.selenium.WebElement element)
Deprecated.
|
static <T> T |
guardAjax(T target)
Returns the guarded object checking whether the Ajax (XHR) request is done during
each method invocation.
|
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)
Deprecated.
use
guardAjax(Object) instead |
static WebDriverWait<Void> |
waitAjax() |
static WebDriverWait<Void> |
waitAjax(org.openqa.selenium.WebDriver driver) |
static <T> T |
waitForHttp(T target) |
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) |
@Deprecated public static AttributeConditionFactory attribute(org.openqa.selenium.WebElement element, String attribute)
DEPRECATED: use fluent API instead (waitAjax() / waitGui() / waitModel()
and WebDriverWait.until()). For example:
Graphene.waitAjax().until().element(...).attribute(...).is().present();
Returns an attribute condition factory which can be used to formulate conditions related to the given attribute.
element - element which the attribute belongs toattribute - attribute nameElementBuilder.attribute(java.lang.String)@Deprecated public static ElementConditionFactory element(org.openqa.selenium.WebElement element)
DEPRECATED: use fluent API instead (waitAjax() / waitGui() / waitModel()
and WebDriverWait.until()). For example:
Graphene.waitAjax().until().element(...).is().present();
Returns an element condition factory which can be used to formulate conditions related to the given element.
element - FluentBuilder.element(org.openqa.selenium.WebElement)@Deprecated public static ElementConditionFactory element(org.openqa.selenium.By locator)
DEPRECATED: use fluent API instead (waitAjax() / waitGui() / waitModel()
and WebDriverWait.until()). For example:
Graphene.waitAjax().until().element(...).is().present();
Returns an element condition factory which can be used to formulate conditions related to the element determined by the given locater.
locator - FluentBuilder.element(org.openqa.selenium.By)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 guarded@Deprecated public static <T> T guardXhr(T target)
guardAjax(Object) insteadRequestGuardException is thrown.T - type of the given targettarget - object to be guardedpublic static <T> T guardAjax(T target)
RequestGuardException is thrown.T - type of the given targettarget - object to be guardedpublic static <T> T waitForHttp(T target)
public 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)
public static <T> T createPageFragment(Class<T> clazz, org.openqa.selenium.WebElement root)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.