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
InputDeviceThe input device which performs this action.
Properties
SourceDevice
Gets the device for which this action is intended.
public InputDevice SourceDevice { get; }
Property Value
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
InputDeviceKindThe type of device to check.
Returns
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.