Skip to content

Wait for element

Node type browser_waitForSelector

What it does

Wait for a selector to match before continuing to the next step.

Desktop client configuration

Wait for element 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
selectorRadio"CSS" / "XPath" (supports variable references)No"CSS"Selector type. Editor initial value "CSS"
selectorstringNo—Selector
serialWorkflowNumberNo1Element index; integer; minimum after resolution: 1. Editor initial value 1
isShowboolean (supports variable references)NotrueRequire element to be visible. Editor initial value true
maxWaitMsWorkflowNumberNo10000Maximum wait time (ms); minimum after resolution: 1. Editor initial value 10000

Mode requirements and limits

  • Required selector
  • selector must be non-empty. maxWaitMs is the wait limit. On timeout, the node fails; it does not return found:false.
  • Validation code RPA_NODE_INPUT_INVALID
  • selector is required. isShow=true also requires the element to be visible; false requires only that it exists. maxWaitMs is the search limit.
  • Validation code RPA_NODE_INPUT_INVALID

Input references

FieldAllowed forms
selectorRadioliteral, template
selectorliteral, template
serialliteral, numericExpression
isShowliteral, template
maxWaitMsliteral, numericExpression

Outputs

Output fieldType or values
foundtrue
elementElementRef
matchedCountnumber

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

JSON example

A complete node object for a workflow's nodes array or another node's blocks.

{
  "id": "wait_results",
  "type": "browser_waitForSelector",
  "data": {
    "title": "Wait for the results list",
    "browserAction": "waitForSelector",
    "browserUi": {
      "inputs": {
        "selectorRadio": "CSS",
        "selector": "#results",
        "isShow": true,
        "maxWaitMs": 10000
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}

Back to the node catalog