Action: Conditional JavaScript (ConditionalJs)

Executes JavaScript and stops the script if the result is false

📖 Description

ConditionalJs executes JavaScript code in the browser context and expects the result to be true. If the result is false, the script execution will stop with an error. This is useful for validating page content, checking for element presence, or verifying state.

🧩 Structure
Field Type Required Description

script

JsCodeSpec JavaScript code that must return true or false. Can be provided inline or via an external file.
📋 Example
{
  "action": "ConditionalJs",
  "script": {
    "inline": "return document.title.includes('Dashboard');"
  }
}
📄 Site updated: 17.06.2025 00:01
An unhandled error has occurred. Reload 🗙