scripts_setFileInputFiles,想问下这个命令,适用哪些场景的?

使用问题 · 20 次浏览
反卷练习生 创建于 1天2小时前

scripts_setFileInputFiles,想问下这个命令,适用哪些场景的?下面这种能实现吗?


回复内容
反卷练习生 回复 CL 17小时23分钟前 :
Win-10.0.22635.0 Quicker-1.44.19.0 动作ID:a7678790-b4be-43e3-bf70-5368c39c9bc4 来源动作: v0
Log文件路径:C:\Users\Administrator\AppData\Local\Temp\quicker_测试13_070547-242_log.html 定位文件 复制文件 上传并复制网址
开始执行动作:测试13 2025-06-23 19:05:47
0动作初始化
00浏览器控制浏览器:运行后台命令 (MV3版扩展)
[in]失败后停止【值/表达式】True
[in]操作类型【值/表达式】BackgroundCommand
[in]超时时间(ms)【值/表达式】3000
[in]标签页Id【无输入】
连接的浏览器:chrome
[in]命令【值/表达式】scripts_setFileInputFiles
[in]命令参数【值/表达式】{ "selector": "input[@id='html5_1iue6ti2217is1dpot3p2dua7i3']", "files": ["D:/Administrator/Downloads/IMG_20250623_160654.jpg"] }
[in]返回值过滤器【值/表达式】
[in]等待操作完成或返回数据【值/表达式】True
异常:后台脚本返回失败!{"code":-32000,"message":"DOM Error while querying"}{}
在 tfanttUAA5nOWlnYTigs.ucsyXIyzzuC6GpVWbEgX.PN2UAmEkyc5(ActionStep , ActionExecuteContext , XAction , Int32 ) 在 tfanttUAA5nOWlnYTigs.ucsyXIyzzuC6GpVWbEgX.<>c__DisplayClass104_0.LmhZjKv8m69() 在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)
步骤(sys:chromecontrol)执行失败,原因:后台脚本返回失败!{"code":-32000,"message":"DOM Error while querying"}{}
停止动作:后台脚本返回失败!{"code":-32000,"message":"DOM Error while querying"}{}
耗时:165ms
检测到了中止标志(OperationFailed),停止后续步骤执行。
动作结束。耗时:164.5266ms 我测试了好久,后面提示这个错误,啥原因呢
反卷练习生 回复 CL 17小时13分钟前 :
浏览器控制浏览器:运行后台命令 (MV3版扩展)
[in]失败后停止【值/表达式】True
[in]操作类型【值/表达式】BackgroundCommand
[in]超时时间(ms)【值/表达式】3000
[in]标签页Id【无输入】
连接的浏览器:chrome
[in]命令【值/表达式】scripts_setFileInputFiles
[in]命令参数【值/表达式】{ "target": {"tabId": 757707816}, "selector": "input[type='file']", "files": ["D:/Administrator/Downloads/IMG_20250623_160654.jpg"] }
[in]返回值过滤器【值/表达式】
[in]等待操作完成或返回数据【值/表达式】True
异常:后台脚本返回失败!Debugger is not attached to the tab with id: 757707816.{}
在 tfanttUAA5nOWlnYTigs.ucsyXIyzzuC6GpVWbEgX.PN2UAmEkyc5(ActionStep , ActionExecuteContext , XAction , Int32 ) 在 tfanttUAA5nOWlnYTigs.ucsyXIyzzuC6GpVWbEgX.<>c__DisplayClass104_0.LmhZjKv8m69() 在 Quicker.Domain.Actions.X.XActionHelper.ExecuteCommonAction(ActionExecuteContext context, ActionStep step, XAction action, Func`1 actionFunc, Action successAction, Action failAction, StepInParamDef stopIfErrorParam, StepOutParamDef isSuccessOutputParam)
步骤(sys:chromecontrol)执行失败,原因:后台脚本返回失败!Debugger is not attached to the tab with id: 757707816.{}
停止动作:后台脚本返回失败!Debugger is not attached to the tab with id: 757707816.{}
CL 回复 反卷练习生 14小时12分钟前 :

不太清楚。 开发者模式开启了么?

回复主贴