指令说明
描述: 在指定的网页中执行一段JavaScript脚本,同时获取脚本的执行结果。参数说明
- 常规
- 高级

使用示例


效果展示
JavaScript脚本在目标网页上成功执行,并返回执行结果。
使用指令过程中遇到问题?前往 八爪鱼RPA 开发者社区问答板块 提问,获取官方与社区帮助。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.

| 参数 | 说明 |
|---|---|
| 网页对象 | 选择一个之前通过【打开网页】或【获取已打开的网页对象】指令创建的网页对象 |
| JavaScript函数 | 输入要执行的JavaScript脚本代码,直接写在函数体内,即内,需要保留函数名 |


function getUrl(element, input){
var dataUrl = document.URL;
return dataUrl;
}

