节点类型 browser_screenshotPage
在流程运行时截取浏览器页面图像。

截图来自 MoreLogin 桌面客户端 V2.73.101 的英文界面。
以下字段位于 data.browserUi.inputs。
| 字段 | 类型或取值 | Schema 必填 | 执行默认值 | 说明与边界 |
|---|---|---|---|---|
name | string | 否 | — | 截图名称 |
format | "png" / "jpg"(支持变量引用) | 否 | "png" | 图片格式 编辑器初值 "png" |
quality | integer | 否 | 80 | 图片质量; integer; minimum after resolution: 1; maximum after resolution: 100; literal only (no reference or expression) minimum = 1, maximum = 100 编辑器初值 80 |
fullPage | boolean(支持变量引用) | 否 | true | 截取完整网页 编辑器初值 true |
type | "default" / "folder"(支持变量引用) | 否 | "default" | 保存位置 编辑器初值 "default" |
defaultDirectory | string | 否 | — | 默认目录(编辑器显示客户端的本机默认截图目录,不写入模板,执行器不读取) |
url | string | 否 | — | 保存目录 |
- type=folder 时 url 是已授权的绝对目录;默认路径由执行器管理,defaultDirectory 只作编辑器展示(编辑器显示客户端的本机默认截图目录,不写入模板)。quality 只用于 jpg,只能写 1–100 的整数,不能引用变量或写算式。
- 校验错误码
RPA_NODE_INPUT_INVALID
| 字段 | 允许的形式 |
|---|---|
name | literal, template |
format | literal, template |
quality | literal |
fullPage | literal, template |
type | literal, template |
defaultDirectory | literal, template |
url | literal, template |
| 输出字段 | 类型或取值 |
|---|---|
path | string |
name | string |
width | number |
height | number |
mimeType | string |
sizeBytes | number |
按契约用 ${nodeId.data.field} 引用公开字段。
可放入流程 nodes 数组或其他节点 blocks 中的完整节点对象。
{
"id": "capture_checkout",
"type": "browser_screenshotPage",
"data": {
"title": "截取结账页面",
"browserAction": "screenshotPage",
"browserUi": {
"inputs": {
"name": "checkout",
"format": "png",
"fullPage": true,
"type": "default"
},
"exception": {
"timeout": 30000,
"policy": "interrupt"
}
}
}
}