|This property is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.|
wText property to get or set the text displayed in a text edit control in a mobile application.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following objects:
A string containing the text displayed by the control.
If an edit control works in password mode, that is, it hides its actual text using a pre-defined character, the
wText property returns the actual text rather than the text displayed to the user.
Assigning a new value to the
wText property does not move the insertion point.
Note that to change text in an edit control, you can also use the
SetText action. Unlike the
SetText adds a note about the performed operation to the test log.
To view an example that demonstrates how to use the
wText property to obtain the text displayed by an Android edit control, see Getting the Edit Text Control's Text.
For an example that demonstrates how to use the
wText property to obtain the text displayed in an iOS text edit control, see Getting an Edit Control's Text.