browserSelectOption
Selects specified options in a dropdown menu on a webpage, using the element's xpath reference and providing a delay for snapshot capture, optimizing web interactions within the 'Better Playwright MCP' framework.
Instructions
在下拉框中选择选项
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
ref | Yes | 元素的xp引用值 | |
values | Yes | 要选择的选项值数组 | |
waitForTimeout | No | 操作后等待获取快照的延迟时间(毫秒,默认2000) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"pageId": {
"description": "页面ID",
"type": "string"
},
"ref": {
"description": "元素的xp引用值",
"type": "string"
},
"values": {
"description": "要选择的选项值数组",
"items": {
"type": "string"
},
"type": "array"
},
"waitForTimeout": {
"description": "操作后等待获取快照的延迟时间(毫秒,默认2000)",
"type": "number"
}
},
"required": [
"pageId",
"ref",
"values"
],
"type": "object"
}