Class ActionBuilder
- Namespace
- OpenQA.Selenium.Interactions
- Assembly
- WebDriver.dll
Provides methods that allow the creation of action sequences to enable advanced user interactions.
public class ActionBuilder
- Inheritance
-
ActionBuilder
- Inherited Members
Methods
AddAction(Interaction)
Adds an action to the built set of actions. Adding an action will add a "tick" to the set of all actions to be executed.
public ActionBuilder AddAction(Interaction actionToAdd)
Parameters
actionToAdd
InteractionThe action to add to the set of actions
Returns
- ActionBuilder
A self reference.
AddActions(params Interaction[])
Adds an action to the built set of actions. Adding an action will add a "tick" to the set of all actions to be executed. Only one action for each input device may be added for a single tick.
public ActionBuilder AddActions(params Interaction[] actionsToAdd)
Parameters
actionsToAdd
Interaction[]The set actions to add to the existing set of actions.
Returns
- ActionBuilder
A self reference.
ClearSequences()
Resets the list of sequences.
public void ClearSequences()
ToActionSequenceList()
Converts the set of actions in this ActionBuilder to a List<T>.
public IList<ActionSequence> ToActionSequenceList()
Returns
- IList<ActionSequence>
A IList<T> suitable for transmission across the wire. The collection returned is read-only.
ToString()
Returns a string that represents the current ActionBuilder.
public override string ToString()
Returns
- string
A string that represents the current ActionBuilder.