Class AddonsHelper<D extends org.openqa.selenium.WebDriver>

  • Type Parameters:
    D - The driver type executing the actions.

    public class AddonsHelper<D extends org.openqa.selenium.WebDriver>
    extends GenericAddonsHelper
    Helper class allowing to execute Addons.
    • Constructor Summary

      Constructors 
      Constructor Description
      AddonsHelper​(D driver, AgentClient agentClient)
      Initializes a new instance of the helper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ActionProxy execute​(ActionProxy action, org.openqa.selenium.By by)
      Executes an Action using it's proxy.
      ActionProxy execute​(ActionProxy action, org.openqa.selenium.By by, int timeout)
      Executes an Action using it's proxy.
      <T extends org.openqa.selenium.WebDriver>
      boolean
      run​(Action<T> action)
      Runs the action.
      <T extends org.openqa.selenium.WebDriver>
      boolean
      run​(ElementAction<T> action, org.openqa.selenium.By elementSearchCriteria)
      Runs the action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddonsHelper

        public AddonsHelper​(D driver,
                            AgentClient agentClient)
        Initializes a new instance of the helper.
        Parameters:
        agentClient - Agent client to use for communicating with the Agent.
        driver - Driver.
    • Method Detail

      • run

        public <T extends org.openqa.selenium.WebDriver> boolean run​(Action<T> action)
        Runs the action.
        Type Parameters:
        T - The driver type that this action supports.
        Parameters:
        action - Action to run.
        Returns:
        True if hte action passed.
      • run

        public <T extends org.openqa.selenium.WebDriver> boolean run​(ElementAction<T> action,
                                                                     org.openqa.selenium.By elementSearchCriteria)
        Runs the action.
        Type Parameters:
        T - The driver type that this action supports.
        Parameters:
        action - Action to run.
        elementSearchCriteria - Element search criteria.
        Returns:
        True if hte action passed.
      • execute

        public ActionProxy execute​(ActionProxy action,
                                   org.openqa.selenium.By by)
        Executes an Action using it's proxy. Addons are tiny automation building blocks that have one or more actions. Addon Proxy can be obtained from the Addons page.
        Parameters:
        action - Specific Action proxy.
        by - Element locator in case the Action needs one.
        Returns:
        Presumably modified class with updated output fields.
        See Also:
        TestProject Addons Page
      • execute

        public ActionProxy execute​(ActionProxy action,
                                   org.openqa.selenium.By by,
                                   int timeout)
        Executes an Action using it's proxy.

        Addons are tiny automation building blocks that have one or more actions. Addon Proxy can be obtained from the Addons page.

        Parameters:
        action - Specific Action proxy.
        by - Element locator in case the Action needs one.
        timeout - maximum amount of time allowed to wait for action execution to complete.
        Returns:
        Potentially modified class with updated output fields (if any).
        See Also:
        TestProject Addons page.