Class PointerMoveAction
- Namespace
- WebDriverBiDi.Input
- Assembly
- WebDriverBiDi.dll
An action to send a pointer move on a pointer device.
public class PointerMoveAction : PointerAction, IPointerSourceAction
- Inheritance
-
PointerMoveAction
- Implements
- Inherited Members
Constructors
PointerMoveAction()
Initializes a new instance of the PointerMoveAction class.
public PointerMoveAction()
Properties
Duration
Gets or sets the duration of the move.
[JsonIgnore]
public TimeSpan? Duration { get; set; }
Property Value
Remarks
Valid values for this property are greater than or equal to zero, as the protocol transmits the duration as an unsigned integer number of milliseconds. Unlike properties whose range the remote end enforces, a negative value is rejected by this property, because a negative duration cannot be represented on the wire.
Exceptions
- ArgumentOutOfRangeException
Thrown when set to a negative TimeSpan.
Origin
Gets or sets the origin of the move.
[JsonIgnore]
public Origin? Origin { get; set; }
Property Value
Type
Gets the type of the action.
[JsonPropertyName("type")]
public string Type { get; }
Property Value
X
Gets or sets the horizontal distance of the move, measured in pixels from the origin point.
[JsonPropertyName("x")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double X { get; set; }
Property Value
Y
Gets or sets the vertical distance of the move, measured in pixels from the origin point.
[JsonPropertyName("y")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double Y { get; set; }