Table of Contents

Class PointerAction

Namespace
WebDriverBiDi.Input
Assembly
WebDriverBiDi.dll

Base class for pointer actions.

public class PointerAction
Inheritance
PointerAction
Derived
Inherited Members

Constructors

PointerAction()

Initializes a new instance of the PointerAction class.

protected PointerAction()

Properties

AltitudeAngle

Gets or sets the altitude angle (angle from the horizontal) of the pointer device. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; Pointer Events Level 3 defines the platform default as pi / 2, a pointer perpendicular to the surface.

[JsonPropertyName("altitudeAngle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
[SpecRange(0, 1.5707963267948966)]
public double? AltitudeAngle { get; set; }

Property Value

double?

Remarks

Valid values for this property range from 0.0 to 1.5707963267948966 (pi / 2), inclusive. This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.

AzimuthAngle

Gets or sets the azimuth angle (angle from "north," or a line directly up from the point of contact) of the pointer device. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; Pointer Events Level 3 defines the platform default as 0.0.

[JsonPropertyName("azimuthAngle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
[SpecRange(0, 6.283185307179586)]
public double? AzimuthAngle { get; set; }

Property Value

double?

Remarks

Valid values for this property range from 0.0 to 6.283185307179586 (2 * pi), inclusive. This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.

Height

Gets or sets the height of the pointer in pixels. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; Pointer Events Level 3 defines the platform default as 1 for a device that reports no contact geometry.

[JsonPropertyName("height")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ulong? Height { get; set; }

Property Value

ulong?

Pressure

Gets or sets the pressure of the pointer on the surface. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; under Pointer Events Level 3, hardware that does not report pressure gives 0.0 when no button is active and 0.5 when one is.

[JsonPropertyName("pressure")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
[SpecRange(0, 1)]
public double? Pressure { get; set; }

Property Value

double?

Remarks

Valid values for this property range from 0.0 to 1.0, inclusive. This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.

TangentialPressure

Gets or sets the tangential pressure of the pointer on the surface. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; Pointer Events Level 3 defines the platform default as 0.0 for hardware that does not report tangential pressure.

[JsonPropertyName("tangentialPressure")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
[SpecRange(-1, 1)]
public double? TangentialPressure { get; set; }

Property Value

double?

Remarks

Valid values for this property range from -1.0 to 1.0, inclusive. This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.

Twist

Gets or sets the twist of the pointer in degrees on the surface. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; Pointer Events Level 3 defines the platform default as 0.

[JsonPropertyName("twist")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[SpecRange(0, 359)]
public ulong? Twist { get; set; }

Property Value

ulong?

Remarks

Valid values for this property range from 0 to 359, inclusive. This property does not validate its value; a value outside this range is sent as-is, and a conforming remote end rejects it when the command is executed.

Width

Gets or sets the width of the pointer in pixels. Neither the WebDriver BiDi nor the WebDriver classic specification defines a value for this property when it is omitted; Pointer Events Level 3 defines the platform default as 1 for a device that reports no contact geometry.

[JsonPropertyName("width")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ulong? Width { get; set; }

Property Value

ulong?