waitForSelector
Pause execution until a specified element, identified by a CSS selector or XPath, appears on the webpage, with configurable timeout and state conditions for precise control.
Instructions
等待指定选择器的元素出现
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
selector | Yes | CSS选择器或xp引用值 | |
state | No | 等待的状态(默认visible) | |
timeout | No | 超时时间(毫秒,默认30000) |