Inject text into devices

There are several ways to inject text into edit fields. Some of them require the use of the device's keyboard and some of them do not, for example text objects functions such as Button.click.text, Edit.set.text, and Select.text, or the Type text function Text Entry.

The selected function depends on your automation knowledge and skills in addition to the script's needs. There is no best practice to inject text into a device. A lot of parameters are effecting the selection of a suitable function.

The recommendation is to use a function that you feel most comfortable to use. For example, the Edit.set.text function can be used in some cases, although there are scenarios in which it could not be usable. In this case, another method should be selected.

The following image shows an example of how to inject text into the 'username' field by using the Edit set function.

The following image shows an example of how to inject text into the 'username' field by using the Type.text function.

Note:

Using the Type.text function requires that you focus the edit field before executing the function (by using the Button.click or Select commands).