Class WheelScrollAction
- Namespace
- WebDriverBiDi.Input
- Assembly
- WebDriverBiDi.dll
An action to scroll a wheel device.
public class WheelScrollAction : IWheelSourceAction
- Inheritance
-
WheelScrollAction
- Implements
- Inherited Members
Constructors
WheelScrollAction()
Initializes a new instance of the WheelScrollAction class.
public WheelScrollAction()
Properties
DeltaX
Gets or sets the horizontal change for the action.
[JsonPropertyName("deltaX")]
public long DeltaX { get; set; }
Property Value
DeltaY
Gets or sets the vertical change for the action.
[JsonPropertyName("deltaY")]
public long DeltaY { get; set; }
Property Value
Duration
Gets or sets the duration of the scroll.
[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 scroll.
[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 position of the action.
[JsonPropertyName("x")]
public long X { get; set; }
Property Value
Y
Gets or sets the vertical position of the action.
[JsonPropertyName("y")]
public long Y { get; set; }