Table of Contents

Class InputAction

Namespace
WebDriverBiDi.Input
Assembly
WebDriverBiDi.Extensions.dll

Represents a user action to be taken in the browser being automated.

public class InputAction
Inheritance
InputAction
Inherited Members

Constructors

InputAction(string, object)

Initializes a new instance of the InputAction class.

public InputAction(string sourceId, object action)

Parameters

sourceId string

The ID of the InputSource for which the action applies.

action object

The object representing the action.

Properties

SourceId

Gets the ID of the InputSource for which this action applies.

public string SourceId { get; }

Property Value

string

Methods

AsActionType<T>()

Converts this action into the appropriate type for adding to the input queue.

public T AsActionType<T>()

Returns

T

The converted action.

Type Parameters

T

The type of the action to which to convert.

Exceptions

WebDriverBiDiException

Thrown if this action cannot be converted to the specified type.