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
sourceIdstringThe ID of the InputSource for which the action applies.
actionobjectThe object representing the action.
Properties
SourceId
Gets the ID of the InputSource for which this action applies.
public string SourceId { get; }
Property Value
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
TThe type of the action to which to convert.
Exceptions
- WebDriverBiDiException
Thrown if this action cannot be converted to the specified type.