Skip to content

inputRandom ​

Type random data of a chosen type into the focused field.

The inputRandom command types random data into the focused field. It is the general form of inputRandomText, inputRandomNumber, inputRandomEmail and inputRandomPersonName.

Syntax ​

Give the type alone, or use the map form with a length.

yaml
- inputRandom: EMAIL
# or
- inputRandom:
    type: NUMBER
    length: 6

Parameters ​

ParameterTypeDescription
typeStringTEXT, NUMBER, EMAIL or PERSON_NAME. Case does not matter. Any other value, or none, types TEXT.
lengthIntegerNumber of characters for TEXT and NUMBER. Defaults to 10. Ignored for EMAIL and PERSON_NAME.

Usage example ​

yaml
- tapOn:
    id: "phone_field"
- inputRandom:
    type: NUMBER
    length: 9

The typed value is shown in the step result. A text field must be focused first.