Class WheelInputSource
- Namespace
- WebDriverBiDi.Input
- Assembly
- WebDriverBiDi.Extensions.dll
A wheel input source, like a mouse wheel, primarily for providing discrete consecutive input values.
public class WheelInputSource : InputSource
- Inheritance
-
WheelInputSource
- Inherited Members
Properties
DeviceKind
Gets the kind of source for this input device.
public override InputSourceKind DeviceKind { get; }
Property Value
Methods
CreateScroll(long, long, long, long, Origin?, TimeSpan?)
Creates a wheel scroll action, simulating the scroll of the wheel.
public InputAction CreateScroll(long x, long y, long deltaX, long deltaY, Origin? origin = null, TimeSpan? duration = null)
Parameters
xlongThe horizontal distance of the scroll, measured in pixels from the origin point.
ylongThe vertical distance of the scroll, measured in pixels from the origin point.
deltaXlongThe horizontal distance of each increment of the scroll, measured in pixels.
deltaYlongThe vertical distance of each increment of the scroll, measured in pixels.
originOriginOptional origin point for the wheel scroll. Defaults to null, which implies the origin is the browser view port.
durationTimeSpan?Optional duration for the wheel scroll. Defaults to null, which implies a zero duration.
Returns
- InputAction
The InputAction representing the action.