mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-09 23:13:22 +08:00
新增表单提交功能:在浏览器命令中添加 submitForm 方法,支持通过选择器填写输入框并提交表单
This commit is contained in:
@@ -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: "获取文本",
|
||||
|
Reference in New Issue
Block a user