Skip to main content
Glama

Better Playwright MCP

by livoras

browserSelectOption

Select options from a dropdown using element references and specified values within a web page. Supports delayed snapshots for accurate validation in browser automation workflows.

Instructions

在下拉框中选择选项

Input Schema

NameRequiredDescriptionDefault
pageIdYes页面ID
refYes元素的xp引用值
valuesYes要选择的选项值数组
waitForTimeoutNo操作后等待获取快照的延迟时间(毫秒,默认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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/livoras/better-playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server