Table of Contents

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

InputSourceKind

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

x long

The horizontal distance of the scroll, measured in pixels from the origin point.

y long

The vertical distance of the scroll, measured in pixels from the origin point.

deltaX long

The horizontal distance of each increment of the scroll, measured in pixels.

deltaY long

The vertical distance of each increment of the scroll, measured in pixels.

origin Origin

Optional origin point for the wheel scroll. Defaults to null, which implies the origin is the browser view port.

duration TimeSpan?

Optional duration for the wheel scroll. Defaults to null, which implies a zero duration.

Returns

InputAction

The InputAction representing the action.