Skip to content

Input content

Node type browser_inputContent

What it does

Enter supplied content into the target input element.

Desktop client configuration

Input content configuration in the desktop client

Captured in the English interface of MoreLogin Desktop V2.73.101.

Inputs

These fields belong in data.browserUi.inputs.

FieldType or valuesSchema requiredExecution defaultDescription and bounds
selectorType"selector" / "element" / "frame" (supports variable references)No"selector"Element source. Editor initial value "selector"
framestringNo—iframe variable
elementstringNo—Element variable
selectorRadio"CSS" / "XPath" (supports variable references)No"CSS"Selector type. Editor initial value "CSS"
selectorstringNo—Selector
serialType"fixed" / "randomInterval" (supports variable references)No"fixed"When multiple element objects match. Editor initial value "fixed"
serialWorkflowNumberNo1Element index; integer; minimum after resolution: 1. Editor initial value 1
serialMinWorkflowNumberNo—Minimum index; integer; minimum after resolution: 1
serialMaxWorkflowNumberNo—Maximum index; integer; minimum after resolution: 1
isRandom"fixed" / "0" / "1" / "2" (supports variable references)No"fixed"Input mode. Editor initial value "fixed"
contentstringNo—Input content
randomContentstringNo—Candidate text (one per line)
randomInputNumarray / object (supports variable references)No—Random number range; fractions and negatives allowed; max ≥ min
isClearboolean (supports variable references)NotrueClear before input. Editor initial value true
intervalsWorkflowNumberNo200Per-character typing interval (ms); minimum after resolution: 0. Editor initial value 200
postWaitMsWorkflowNumberNo300Wait after completion (ms); minimum after resolution: 0. Editor initial value 300

Mode requirements and limits

  • Locator rules: selectorType=selector requires selector; frame requires frame+selector; element requires an ElementRef reference from a previous node. serial starts at 1. randomInterval uses serialMin/serialMax, and the minimum cannot be greater than the maximum. The node first waits for the selector to match elements, then picks the index once: the upper bound of the range is capped at the actual match count. If a fixed index or the lower bound of the range is greater than the match count, ELEMENT_NOT_FOUND (reason=range, details.field is serial or serialMin) is returned immediately and the page is not touched. isRandom=fixed requires content. When the whole content is a reference to a number or boolean, its text is typed; an object/array is typed as JSON text. 0/1 require randomContent with one entry per line. Empty lines (empty after trimming whitespace) are not picked, and 0 picks the Nth non-empty line for the Nth environment. 2 uses randomInputNum, with a default range of [1,100]. intervals is the per-character typing interval, in milliseconds.
  • Validation code RPA_NODE_INPUT_INVALID

isRandom eq "2"

  • Required randomInputNum
  • This field is required in the editor and has no default. If it is omitted, writes and validation return RPA_NODE_INPUT_INVALID (reason=required), and a run is rejected the same way before it starts.
  • Validation code RPA_NODE_INPUT_INVALID

Input references

FieldAllowed forms
selectorTypeliteral, template
frameliteral, template
elementliteral, template
selectorRadioliteral, template
selectorliteral, template
serialTypeliteral, template
serialliteral, numericExpression
serialMinliteral, numericExpression
serialMaxliteral, numericExpression
isRandomliteral, template
contentliteral, template
randomContentliteral, template
randomInputNumliteral, numericExpression
isClearliteral, template
intervalsliteral, numericExpression
postWaitMsliteral, numericExpression

Outputs

Output fieldType or values
elementElementRef
valuestring
insertedTextstring
characterCountnumber

Reference published fields as ${nodeId.data.field}.

JSON example

A complete node object for a workflow's nodes array or another node's blocks. keyword is a initial parameter declared in workflow.variables.

{
  "id": "type_query",
  "type": "browser_inputContent",
  "data": {
    "title": "Type the search keyword",
    "browserAction": "inputContent",
    "browserUi": {
      "inputs": {
        "selectorType": "selector",
        "selectorRadio": "CSS",
        "selector": "input[name=q]",
        "isRandom": "fixed",
        "content": "${keyword}",
        "isClear": true,
        "intervals": 200,
        "postWaitMs": 300
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}

Back to the node catalog