Class AddonsHelper<D extends org.openqa.selenium.WebDriver>
- java.lang.Object
-
- io.testproject.sdk.internal.addons.GenericAddonsHelper
-
- io.testproject.sdk.internal.addons.AddonsHelper<D>
-
- 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 ActionProxyexecute(ActionProxy action, org.openqa.selenium.By by)Executes an Action using it's proxy.ActionProxyexecute(ActionProxy action, org.openqa.selenium.By by, int timeout)Executes an Action using it's proxy.<T extends org.openqa.selenium.WebDriver>
booleanrun(Action<T> action)Runs the action.<T extends org.openqa.selenium.WebDriver>
booleanrun(ElementAction<T> action, org.openqa.selenium.By elementSearchCriteria)Runs the action.-
Methods inherited from class io.testproject.sdk.internal.addons.GenericAddonsHelper
execute, execute, run
-
-
-
-
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.
-
-