查找多个元素
find_elementsFind all elements matching a locator in a specified tab and return their element IDs. Use this to retrieve multiple elements for further interaction or inspection.
Instructions
在标签页中定位所有匹配元素,返回摘要列表(每个元素含 element_id)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | 搜索范围,同 find_element 的 frame 参数 | |
| limit | No | 最多返回与登记的元素数量 | |
| tab_id | No | 标签页 id,省略时用最新标签页 | |
| locator | Yes | 定位符,同 find_element | |
| timeout | No | 未找到时的最长等待秒数 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| elements | Yes |