Docs · API reference · Motus.Abstractions

KeyboardTypeOptions Class#

Options for keyboard type operations.

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

Inheritance System.Object → KeyboardTypeOptions

Implements System.IEquatable<KeyboardTypeOptions>

Constructors#

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

Options for keyboard type operations.

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

Parameters#

Delay System.Nullable<System.Int32>

Time to wait between key presses in milliseconds.

Timeout System.Nullable<System.Double>

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

Properties#

Delay Property#

Time to wait between key presses 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 typing through a locator. Ignored by IKeyboard, which types wherever the focus already is and waits for nothing.

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

Property Value#

System.Nullable<System.Double>