TextBoxSetText Method

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Sets or types a new text into the TextBox.

Namespace:  ArtOfTest.WebAii.Controls.Xaml.Wpf
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public void SetText(
	bool simulateRealUser,
	string text,
	int keyPressTime,
	int keyHoldTime,
	bool fireKeyEvents,
	bool clearCurrentText = true
)

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 (Optional)
Type: SystemBoolean
If true clears text before simulated typing.

Implements

ITextBoxSetText(Boolean, String, Int32, Int32, Boolean, Boolean)
See Also

Reference