Class BrowserActions
java.lang.Object
org.jboss.arquillian.graphene.context.BrowserActions
This class provides a way to perform actions dependent on browser context.
- Author:
- Jan Papousek
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BrowserActionsgetName()static BrowserActionsGet the browser actions associated to the last active browser context.<T> TperformAction(Callable<T> action) Performs the given action in a context associated to this browser actions.
-
Constructor Details
-
BrowserActions
-
-
Method Details
-
performAction
Performs the given action in a context associated to this browser actions.- Type Parameters:
T- return type of the given action- Parameters:
action- action to be invoked in the context- Returns:
- value returned by the given action
- Throws:
Exception
-
currentBrowserActions
- Returns:
- browser actions associated to the current browser context.
- Throws:
IllegalStateException- if there is no active browser context available
-
lastBrowserActions
Get the browser actions associated to the last active browser context.- Returns:
- the last active browser context of null, if it is not available
-
getName
- Returns:
- name of the browser context
-