Table of Contents

Class Interaction

Namespace
OpenQA.Selenium.Interactions
Assembly
WebDriver.dll

Represents a single interaction for a given input device.

public abstract class Interaction
Inheritance
Interaction
Inherited Members

Constructors

Interaction(InputDevice)

Initializes a new instance of the Interaction class.

protected Interaction(InputDevice sourceDevice)

Parameters

sourceDevice InputDevice

The input device which performs this action.

Properties

SourceDevice

Gets the device for which this action is intended.

public InputDevice SourceDevice { get; }

Property Value

InputDevice

Methods

IsValidFor(InputDeviceKind)

Gets a value indicating whether this action is valid for the specified type of input device.

public virtual bool IsValidFor(InputDeviceKind sourceDeviceKind)

Parameters

sourceDeviceKind InputDeviceKind

The type of device to check.

Returns

bool

true if the action is valid for the specified type of input device; otherwise, false.

ToDictionary()

Returns a value for this action that can be transmitted across the wire to a remote end.

public abstract Dictionary<string, object> ToDictionary()

Returns

Dictionary<string, object>

A Dictionary<TKey, TValue> representing this action.