scrollToBottom
Scroll to the bottom of a webpage or a specific element using Playwright, with optional timeout for snapshot capture during automated browser interactions.
Instructions
滚动到页面或元素底部
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
selector | No | 元素的xp引用值,如果不提供则滚动页面到底部 | |
waitForTimeout | No | 操作后等待获取快照的延迟时间(毫秒,默认2000) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"pageId": {
"description": "页面ID",
"type": "string"
},
"selector": {
"description": "元素的xp引用值,如果不提供则滚动页面到底部",
"type": "string"
},
"waitForTimeout": {
"description": "操作后等待获取快照的延迟时间(毫秒,默认2000)",
"type": "number"
}
},
"required": [
"pageId"
],
"type": "object"
}