Table of Contents

Class DispatchTouchEventCommandSettings

Namespace
OpenQA.Selenium.DevTools.V146.Input
Assembly
Selenium.WebDriver.dll

Dispatches a touch event to the page.

public sealed class DispatchTouchEventCommandSettings : ICommand
Inheritance
DispatchTouchEventCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

Modifiers

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

[JsonPropertyName("modifiers")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? Modifiers { get; set; }

Property Value

long?

Timestamp

Time at which the event occurred.

[JsonPropertyName("timestamp")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? Timestamp { get; set; }

Property Value

double?

TouchPoints

Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.

[JsonPropertyName("touchPoints")]
public TouchPoint[] TouchPoints { get; set; }

Property Value

TouchPoint[]

Type

Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.

[JsonPropertyName("type")]
public string Type { get; set; }

Property Value

string