Inputs or selects a value into an input element (with a query selector)
Options:
| Option | Required | Description | Example |
|---|---|---|---|
| type | true | (string) Type of input . Possible Values : input | select. | input |
| value | true | (string) The value to be input or selected. | the value to type |
| querySelector | true | (string) Query selector of the element to input data to. | # input |
| delay | false | (string) Speed to input the value (helps to simulate a real user). Possible Values : slow | medium | fast | medium |
| encrypt | false | (bool) Wether or not to encrypt the input in the database | true |
| ariaSelector | false | (string) Aria Selector of the input field | |
| textSelector | false | (string) Text Selector of the input field | |
| xpathSelector | false | (string) Xpath Selector of the input field | |
| pierceSelector | false | (string) Pierce Selector of the input field |
Example 1: Types the given value in the given element at medium speed (querySelector)
{
"action": "input",
"options": {
"type": "input",
"delay": "medium",
"value": "the value to type",
"querySelector": "#input"
}
}
Example 2: Selects the given value (option) from the given element (querySelector)
{
"action": "input",
"options": {
"type": "select",
"value": "Sunday",
"querySelector": "#select-demo"
}
}
