|
Graphene Selenium: 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.ajocado.Graphene
public final class Graphene
| Field Summary | |
|---|---|
static AlertEquals |
alertEquals
|
static AlertPresent |
alertPresent
|
static AttributeEquals |
attributeEquals
|
static AttributePresent |
attributePresent
|
static CountEquals |
countEquals
|
static ElementNotPresent |
elementNotPresent
|
static ElementNotVisible |
elementNotVisible
|
static ElementPresent |
elementPresent
|
static ElementVisible |
elementVisible
|
static AttributeRetriever |
retrieveAttribute
|
static TextRetriever |
retrieveText
|
static StyleEquals |
styleEquals
|
static TextEquals |
textEquals
|
static int |
WAIT_AJAX_INTERVAL
|
static int |
WAIT_GUI_INTERVAL
|
static int |
WAIT_MODEL_INTERVAL
|
static AjaxWaiting |
waitAjax
|
static AjaxWaiting |
waitGui
|
static SeleniumWaiting |
waitModel
|
| Method Summary | ||
|---|---|---|
static
|
child(T locator,
T child,
T... children)
Prepares new locator from composition of locator with children. |
|
static CssLocator |
css(String cssSelector)
Gets element locator finding elements using CSS selectors. |
|
static DomLocator |
dom(JavaScript javascriptExpression)
Find an element by evaluating the specified JavaScript expression. |
|
static GrapheneSelenium |
guardHttp(GrapheneSelenium selenium)
Shortcut for registering a regular HTTP request on given selenium object. |
|
static GrapheneSelenium |
guardNoRequest(GrapheneSelenium selenium)
Shortcut for registering a guard for no request on given selenium object. |
|
static GrapheneSelenium |
guardXhr(GrapheneSelenium selenium)
Shortcut for registering a XMLHttpRequest on given selenium object. |
|
static IdLocator |
id(String id)
Locates the element with specified @id attribute. |
|
static JQueryLocator |
jq(String jquerySelector)
Locates the element using JQuery Selector syntax. |
|
static LinkLocator |
link(String linkText)
Locates the link (anchor) element which contains text matching the specified pattern. |
|
static NameLocator |
name(String name)
Locates the first element with the specified @name attribute. |
|
static GrapheneSelenium |
waitForHttp(GrapheneSelenium selenium)
Shortcut for registering guard waiting for interception of HTTP type request |
|
static GrapheneSelenium |
waitForXhr(GrapheneSelenium selenium)
Shortcut for registering guard waiting for interception of XHR type request |
|
static XPathLocator |
xp(String xpath)
Locates the element using XPath expression. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WAIT_GUI_INTERVAL
public static final int WAIT_AJAX_INTERVAL
public static final int WAIT_MODEL_INTERVAL
public static final AjaxWaiting waitGui
public static final AjaxWaiting waitAjax
public static final SeleniumWaiting waitModel
public static final ElementPresent elementPresent
public static final ElementNotPresent elementNotPresent
public static final TextEquals textEquals
public static final StyleEquals styleEquals
public static final AttributePresent attributePresent
public static final AttributeEquals attributeEquals
public static final AlertPresent alertPresent
public static final AlertEquals alertEquals
public static final CountEquals countEquals
public static final ElementVisible elementVisible
public static final ElementNotVisible elementNotVisible
public static final TextRetriever retrieveText
public static final AttributeRetriever retrieveAttribute
| Method Detail |
|---|
public static GrapheneSelenium guardNoRequest(GrapheneSelenium selenium)
selenium - where should be registered no request guard
public static GrapheneSelenium guardHttp(GrapheneSelenium selenium)
selenium - where should be registered regular HTTP request guard
public static GrapheneSelenium guardXhr(GrapheneSelenium selenium)
selenium - where should be registered XMLHttpRequest guard
public static GrapheneSelenium waitForHttp(GrapheneSelenium selenium)
selenium - selenium where should be the guard registered
public static GrapheneSelenium waitForXhr(GrapheneSelenium selenium)
selenium - where should be the guard registered
public static CssLocator css(String cssSelector)
cssSelector - the CSS selector
public static DomLocator dom(JavaScript javascriptExpression)
javascriptExpression - the JavaScript expression
DomLocatorpublic static IdLocator id(String id)
id - the @id attribute's value
public static LinkLocator link(String linkText)
linkText - the link (anchor) element's text
public static JQueryLocator jq(String jquerySelector)
jquerySelector - the jquery selector
JQueryLocatorpublic static NameLocator name(String name)
name - the @name attribute's value
public static XPathLocator xp(String xpath)
xpath - the xpath expression
XPathLocator
public static <T extends CompoundableLocator<T>> T child(T locator,
T child,
T... children)
Prepares new locator from composition of locator with children.
Syntactic shortcut for expressions like:
locator.getChild(child1).getChild(child2)
T - the type of compoundable locatorlocator - locator basechild - the childr of base locatorchildren - sub-children of base locator
|
Graphene Selenium: Implementation 2.0.0.Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||