scrollToTop
Automatically scroll to the top of a webpage or a specific element using Playwright. Ideal for improving navigation in automated browser interactions, especially in complex web applications.
Instructions
滚动到页面或元素顶部
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | 页面ID | |
selector | No | 元素的xp引用值,如果不提供则滚动页面到顶部 | |
waitForTimeout | No | 操作后等待获取快照的延迟时间(毫秒,默认2000) |