新增表单提交功能:在浏览器命令中添加 submitForm 方法,支持通过选择器填写输入框并提交表单

This commit is contained in:
fofolee
2025-01-23 10:46:52 +08:00
parent f4245a5744
commit 603cadb2ef
3 changed files with 47 additions and 1 deletions

View File

@@ -410,6 +410,30 @@ export const browserCommands = {
},
],
},
{
value: "quickcomposer.browser.submitForm",
label: "提交表单",
icon: "send",
config: [
{
topLabel: "上方填要点击的提交按钮,下方添加要操作的输入框",
component: "ArrayEditor",
width: 12,
columns: {
selector: {
label: "输入框选择器",
options: {
cssSelector: true,
},
},
value: {
label: "要填入的值",
},
},
isCollapse: false,
},
],
},
{
value: "quickcomposer.browser.getText",
label: "获取文本",