API Reference

Inputs or selects a value into an input element (with a query selector)

Options:

OptionRequiredDescriptionExample
typetrue(string) Type of input . Possible Values : input | select.input
valuetrue(string) The value to be input or selected.the value to type
querySelectortrue(string) Query selector of the element to input data to.# input
delayfalse(string) Speed to input the value (helps to simulate a real user). Possible Values : slow | medium | fastmedium
encryptfalse(bool) Wether or not to encrypt the input in the databasetrue
ariaSelectorfalse(string) Aria Selector of the input field
textSelectorfalse(string) Text Selector of the input field
xpathSelectorfalse(string) Xpath Selector of the input field
pierceSelectorfalse(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"
  }
}