waitForSelector
Use this tool to pause execution until a specified element appears on a webpage, defined by a CSS or XPath selector. Set timeout and state conditions such as 'visible' or 'hidden' to control when to proceed.
Instructions
等待指定选择器的元素出现
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
selector | Yes | CSS选择器或xp引用值 | |
state | No | 等待的状态(默认visible) | |
timeout | No | 超时时间(毫秒,默认30000) |