Package org.jboss.arquillian.graphene
Class DefaultGrapheneRuntime
java.lang.Object
org.jboss.arquillian.graphene.GrapheneRuntime
org.jboss.arquillian.graphene.DefaultGrapheneRuntime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclick(org.openqa.selenium.WebElement element) <T> TcreatePageFragment(Class<T> clazz, org.openqa.selenium.WebElement root) voiddoubleClick(org.openqa.selenium.WebElement element) <T> T<T> T<T> TguardAjax(T target) Returns the guarded object checking whether the Ajax (XHR) request is done during each method invocation.<T> TguardHttp(T target) Returns the guarded object checking whether the HTTP request is done during each method invocation.<T> TguardNoRequest(T target) Returns the guarded object checking that no request is done during each method invocation.waitAjax()waitAjax(org.openqa.selenium.WebDriver driver) <T> TwaitForHttp(T target) waitGui()waitGui(org.openqa.selenium.WebDriver driver) waitModel(org.openqa.selenium.WebDriver driver) protected voidwriteIntoElement(org.openqa.selenium.WebElement element, String text) Methods inherited from class org.jboss.arquillian.graphene.GrapheneRuntime
getInstance, popInstance, pushInstance
-
Constructor Details
-
DefaultGrapheneRuntime
public DefaultGrapheneRuntime()
-
-
Method Details
-
guardHttp
public <T> T guardHttp(T target) Returns the guarded object checking whether the HTTP request is done during each method invocation. If the request is not found, theRequestGuardExceptionis thrown.- Specified by:
guardHttpin classGrapheneRuntime- Type Parameters:
T- type of the given target- Parameters:
target- object to be guarded- Returns:
- the guarded object
-
guardNoRequest
public <T> T guardNoRequest(T target) Returns the guarded object checking that no request is done during each method invocation. If any request is found, theRequestGuardExceptionis thrown.- Specified by:
guardNoRequestin classGrapheneRuntime- Type Parameters:
T- type of the given target- Parameters:
target- object to be guarded- Returns:
- the guarded object
-
guardAjax
public <T> T guardAjax(T target) Returns the guarded object checking whether the Ajax (XHR) request is done during each method invocation. If the request is not found, theRequestGuardExceptionis thrown.- Specified by:
guardAjaxin classGrapheneRuntime- Type Parameters:
T- type of the given target- Parameters:
target- object to be guarded- Returns:
- the guarded object
-
waitForHttp
public <T> T waitForHttp(T target) - Specified by:
waitForHttpin classGrapheneRuntime
-
waitAjax
- Specified by:
waitAjaxin classGrapheneRuntime
-
waitAjax
- Specified by:
waitAjaxin classGrapheneRuntime
-
waitGui
- Specified by:
waitGuiin classGrapheneRuntime
-
waitGui
- Specified by:
waitGuiin classGrapheneRuntime
-
waitModel
- Specified by:
waitModelin classGrapheneRuntime
-
waitModel
- Specified by:
waitModelin classGrapheneRuntime
-
createPageFragment
- Specified by:
createPageFragmentin classGrapheneRuntime
-
goTo
- Specified by:
goToin classGrapheneRuntime
-
goTo
- Specified by:
goToin classGrapheneRuntime
-
doubleClick
public void doubleClick(org.openqa.selenium.WebElement element) - Specified by:
doubleClickin classGrapheneRuntime
-
click
public void click(org.openqa.selenium.WebElement element) - Specified by:
clickin classGrapheneRuntime
-
writeIntoElement
- Specified by:
writeIntoElementin classGrapheneRuntime
-