Table of Contents

Class InputDevice

Namespace
OpenQA.Selenium.Interactions
Assembly
WebDriver.dll

Base class for all input devices for actions.

public abstract class InputDevice
Inheritance
InputDevice
Derived
Inherited Members

Constructors

InputDevice(string)

Initializes a new instance of the InputDevice class.

protected InputDevice(string deviceName)

Parameters

deviceName string

The unique name of the input device represented by this class.

Properties

DeviceKind

Gets the kind of device for this input device.

public abstract InputDeviceKind DeviceKind { get; }

Property Value

InputDeviceKind

DeviceName

Gets the unique name of this input device.

public string DeviceName { get; }

Property Value

string

Methods

CreatePause()

Creates a pause action for synchronization with other action sequences.

public Interaction CreatePause()

Returns

Interaction

The Interaction representing the action.

CreatePause(TimeSpan)

Creates a pause action for synchronization with other action sequences.

public Interaction CreatePause(TimeSpan duration)

Parameters

duration TimeSpan

A TimeSpan representing the duration of the pause. Note that Zero pauses to synchronize with other action sequences for other devices.

Returns

Interaction

The Interaction representing the action.

GetHashCode()

Returns a hash code for the current InputDevice.

public override int GetHashCode()

Returns

int

A hash code for the current InputDevice.

ToDictionary()

Returns a value for this input device 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.

ToString()

Returns a string that represents the current InputDevice.

public override string ToString()

Returns

string

A string that represents the current InputDevice.