public class DefaultGrapheneRuntime extends GrapheneRuntime
Constructor and Description |
---|
DefaultGrapheneRuntime() |
Modifier and Type | Method and Description |
---|---|
<T> T |
createPageFragment(Class<T> clazz,
org.openqa.selenium.WebElement root) |
<T> T |
goTo(Class<T> clazz) |
<T> T |
goTo(Class<T> pageObject,
Class<?> browserQualifier) |
<T> T |
guardAjax(T target)
Returns the guarded object checking whether the Ajax (XHR) request is done during
each method invocation.
|
<T> T |
guardHttp(T target)
Returns the guarded object checking whether the HTTP request is done during
each method invocation.
|
<T> T |
guardNoRequest(T target)
Returns the guarded object checking that no request is done during
each method invocation.
|
WebDriverWait<Void> |
waitAjax() |
WebDriverWait<Void> |
waitAjax(org.openqa.selenium.WebDriver driver) |
<T> T |
waitForHttp(T target) |
WebDriverWait<Void> |
waitGui() |
WebDriverWait<Void> |
waitGui(org.openqa.selenium.WebDriver driver) |
WebDriverWait<Void> |
waitModel() |
WebDriverWait<Void> |
waitModel(org.openqa.selenium.WebDriver driver) |
getInstance, popInstance, pushInstance
public <T> T guardHttp(T target)
RequestGuardException
is thrown.guardHttp
in class GrapheneRuntime
T
- type of the given targettarget
- object to be guardedpublic <T> T guardNoRequest(T target)
RequestGuardException
is thrown.guardNoRequest
in class GrapheneRuntime
T
- type of the given targettarget
- object to be guardedpublic <T> T guardAjax(T target)
RequestGuardException
is thrown.guardAjax
in class GrapheneRuntime
T
- type of the given targettarget
- object to be guardedpublic <T> T waitForHttp(T target)
waitForHttp
in class GrapheneRuntime
public WebDriverWait<Void> waitAjax()
waitAjax
in class GrapheneRuntime
public WebDriverWait<Void> waitAjax(org.openqa.selenium.WebDriver driver)
waitAjax
in class GrapheneRuntime
public WebDriverWait<Void> waitGui()
waitGui
in class GrapheneRuntime
public WebDriverWait<Void> waitGui(org.openqa.selenium.WebDriver driver)
waitGui
in class GrapheneRuntime
public WebDriverWait<Void> waitModel()
waitModel
in class GrapheneRuntime
public WebDriverWait<Void> waitModel(org.openqa.selenium.WebDriver driver)
waitModel
in class GrapheneRuntime
public <T> T createPageFragment(Class<T> clazz, org.openqa.selenium.WebElement root)
createPageFragment
in class GrapheneRuntime
public <T> T goTo(Class<T> clazz)
goTo
in class GrapheneRuntime
public <T> T goTo(Class<T> pageObject, Class<?> browserQualifier)
goTo
in class GrapheneRuntime
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.