节点类型 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" |
content | string | 否 | — | 匹配内容 |
tabId | string | 否 | — | 标签 ID |
tabOrder | WorkflowNumber | 否 | 1 | 标签序号; integer; minimum after resolution: 1 编辑器初值 1 |
postWaitMs | WorkflowNumber | 否 | 300 | 完成后等待时长(毫秒); minimum after resolution: 0 编辑器初值 300 |
- 仅 scope=specified 使用 type/relation/content/tabId/tabOrder,匹配规则同 switchPage。
- 校验错误码
RPA_NODE_INPUT_INVALID
| 字段 | 允许的形式 |
|---|---|
scope | literal, template |
type | literal, template |
relation | literal, template |
content | literal, template |
tabId | literal, template |
tabOrder | literal, numericExpression |
postWaitMs | literal, numericExpression |
| 输出字段 | 类型或取值 |
|---|---|
closedTabs | array<TabInfo> |
remainingTabCount | number |
activeTab | TabInfo / null |
按契约用 ${nodeId.data.field} 引用公开字段。
可放入流程 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"
}
}
}
}