Docs · API reference · Motus.Abstractions

KeyboardPressOptions Class#

Options for keyboard press operations.

public sealed record KeyboardPressOptions : System.IEquatable<Motus.Abstractions.KeyboardPressOptions>

Inheritance System.Object → KeyboardPressOptions

Implements System.IEquatable<KeyboardPressOptions>

Constructors#

KeyboardPressOptions(Nullable<int>, Nullable<double>) Constructor#

Options for keyboard press operations.

public KeyboardPressOptions(System.Nullable<int> Delay=null, System.Nullable<double> Timeout=null);

Parameters#

Delay System.Nullable<System.Int32>

Time to wait between key down and key up in milliseconds.

Timeout System.Nullable<System.Double>

Maximum time in milliseconds to wait for the element, when pressing through a locator. Ignored by IKeyboard, which dispatches the key wherever the focus already is and waits for nothing.

Properties#

Delay Property#

Time to wait between key down and key up in milliseconds.

public System.Nullable<int> Delay { get; init; }

Property Value#

System.Nullable<System.Int32>

Timeout Property#

Maximum time in milliseconds to wait for the element, when pressing through a locator. Ignored by IKeyboard, which dispatches the key wherever the focus already is and waits for nothing.

public System.Nullable<double> Timeout { get; init; }

Property Value#

System.Nullable<System.Double>