跳转到内容
Last updated

关闭标签页

节点类型 browser_closePage

功能说明

处理完页面后关闭相应标签页。

客户端配置界面

关闭标签页节点的客户端配置界面

截图来自 MoreLogin 桌面客户端 V2.73.101 的英文界面。

输入字段

以下字段位于 data.browserUi.inputs。

字段类型或取值Schema 必填执行默认值说明与边界
scope"current" / "others" / "specified"(支持变量引用)否"current"关闭范围 编辑器初值 "current"
type"url" / "title" / "tabId" / "tabOrder"(支持变量引用)否"url"查找依据 编辑器初值 "url"
relation"equal" / "notEqual" / "contain" / "notContain"(支持变量引用)否"contain"匹配关系 编辑器初值 "contain"
contentstring否—匹配内容
tabIdstring否—标签 ID
tabOrderWorkflowNumber否1标签序号; integer; minimum after resolution: 1 编辑器初值 1
postWaitMsWorkflowNumber否300完成后等待时长(毫秒); minimum after resolution: 0 编辑器初值 300

条件与边界

  • 仅 scope=specified 使用 type/relation/content/tabId/tabOrder,匹配规则同 switchPage。
  • 校验错误码 RPA_NODE_INPUT_INVALID

输入引用

字段允许的形式
scopeliteral, template
typeliteral, template
relationliteral, template
contentliteral, template
tabIdliteral, template
tabOrderliteral, numericExpression
postWaitMsliteral, numericExpression

输出字段

输出字段类型或取值
closedTabsarray<TabInfo>
remainingTabCountnumber
activeTabTabInfo / null

按契约用 ${nodeId.data.field} 引用公开字段。

JSON 示例

可放入流程 nodes 数组或其他节点 blocks 中的完整节点对象。

{
  "id": "close_help_tab",
  "type": "browser_closePage",
  "data": {
    "title": "关闭帮助标签页",
    "browserAction": "closePage",
    "browserUi": {
      "inputs": {
        "scope": "specified",
        "type": "url",
        "relation": "contain",
        "content": "/help",
        "postWaitMs": 300
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}

返回节点目录