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

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"
  }
}