Table of Contents

Class ActionSequence

Namespace
OpenQA.Selenium.Interactions
Assembly
WebDriver.dll

Represents a sequence of actions to be performed in the target browser.

public class ActionSequence
Inheritance
ActionSequence
Inherited Members

Constructors

ActionSequence(InputDevice)

Initializes a new instance of the ActionSequence class.

public ActionSequence(InputDevice device)

Parameters

device InputDevice

The input device that executes this sequence of actions.

ActionSequence(InputDevice, int)

Initializes a new instance of the ActionSequence class.

public ActionSequence(InputDevice device, int initialSize)

Parameters

device InputDevice

The input device that executes this sequence of actions.

initialSize int

the initial size of the sequence.

Properties

Count

Gets the count of actions in the sequence.

public int Count { get; }

Property Value

int

InputDevice

Gets the input device for this Action sequence.

public InputDevice InputDevice { get; }

Property Value

InputDevice

inputDevice

Gets the input device for this Action sequence.

[Obsolete("This property has been renamed to InputDevice and will be removed in a future version")]
[CLSCompliant(false)]
public InputDevice inputDevice { get; }

Property Value

InputDevice

Methods

AddAction(Interaction)

Adds an action to the sequence.

public ActionSequence AddAction(Interaction interactionToAdd)

Parameters

interactionToAdd Interaction

The action to add to the sequence.

Returns

ActionSequence

A self-reference to this sequence of actions.

ToDictionary()

Converts this action sequence into an object suitable for serializing across the wire.

public Dictionary<string, object> ToDictionary()

Returns

Dictionary<string, object>

A Dictionary<TKey, TValue> containing the actions in this sequence.

ToString()

Returns a string that represents the current ActionSequence.

public override string ToString()

Returns

string

A string that represents the current ActionSequence.