fix scrolling action (#4389)

This commit is contained in:
LawyZheng
2026-01-04 15:25:56 +08:00
committed by GitHub
parent 7344027af0
commit 537cb793a6

View File

@@ -2187,7 +2187,7 @@ async def handle_scroll_action(
) -> list[ActionResult]:
if action.x and action.y:
await page.mouse.move(action.x, action.y)
await page.evaluate(f"window.scrollBy({action.scroll_x}, {action.scroll_y})")
await page.mouse.wheel(action.scroll_x, action.scroll_y)
return [ActionSuccess()]