Sets or types a new text into the TextBox.
Namespace: ArtOfTest.WebAii.Controls.Xaml
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
void SetText( bool simulateRealUser, string text, int keyPressTime, int keyHoldTime, bool fireKeyEvents, bool clearCurrentText )
Parameters
- simulateRealUser
- Type: SystemBoolean
If true, simulates typing, otherwise simply replaces the text. - text
- Type: SystemString
The text to set/type. - keyPressTime
- Type: SystemInt32
The delay between each press - keyHoldTime
- Type: SystemInt32
The delay between pressing and releasing each key - fireKeyEvents
- Type: SystemBoolean
If true fires KeyDown and KeyUp events during simulated typing. Not compatible with Unicode text input. - clearCurrentText
- Type: SystemBoolean
If true clears text before simulated typing.
See Also