browserType
Automates text input into web page elements using Playwright MCP, ensuring efficient browser interactions by specifying elements via XPath and optional parameters like slow typing or submission.
Instructions
在页面元素中输入文本
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
ref | Yes | 元素的xp引用值 | |
slowly | No | 是否慢速输入(默认false) | |
submit | No | 输入后是否按回车提交(默认false) | |
text | Yes | 要输入的文本 | |
waitForTimeout | No | 操作后等待获取快照的延迟时间(毫秒,默认2000) |