Class BrowserActions

java.lang.Object
org.jboss.arquillian.graphene.context.BrowserActions

public class BrowserActions extends Object
This class provides a way to perform actions dependent on browser context.
Author:
Jan Papousek
See Also:
  • Constructor Details

    • BrowserActions

      public BrowserActions(String name)
  • Method Details

    • performAction

      public <T> T performAction(Callable<T> action) throws Exception
      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

      public static BrowserActions currentBrowserActions()
      Returns:
      browser actions associated to the current browser context.
      Throws:
      IllegalStateException - if there is no active browser context available
    • lastBrowserActions

      public static BrowserActions 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

      public String getName()
      Returns:
      name of the browser context