feat: add hover action support (#3994)

Co-authored-by: LawyZheng <lawyzheng1106@gmail.com>
This commit is contained in:
Mohamed Khalil
2025-12-09 17:27:26 +02:00
committed by GitHub
parent 0e8d667959
commit f49b07f30d
22 changed files with 281 additions and 13 deletions

View File

@@ -67,6 +67,11 @@ class SkyvernContext:
next_step_pre_scraped_data: dict[str, Any] | None = None
speculative_plans: dict[str, Any] = field(default_factory=dict)
# Store absolute page position of last hovered element to scroll back after re-scraping
# This is the Y position relative to the entire page (not viewport)
last_hovered_element_page_y: float | None = None
last_hovered_element_id: str | None = None
"""
Example output value:
{"loop_value": "str", "output_parameter": "the key of the parameter", "output_value": Any}

View File

@@ -70,6 +70,7 @@ from skyvern.webeye.actions.actions import (
DragAction,
ExtractAction,
GotoUrlAction,
HoverAction,
InputTextAction,
KeypressAction,
LeftMouseAction,
@@ -138,6 +139,7 @@ ACTION_TYPE_TO_CLASS = {
ActionType.SELECT_OPTION: SelectOptionAction,
ActionType.CHECKBOX: CheckboxAction,
ActionType.WAIT: WaitAction,
ActionType.HOVER: HoverAction,
ActionType.SOLVE_CAPTCHA: SolveCaptchaAction,
ActionType.RELOAD_PAGE: ReloadPageAction,
ActionType.EXTRACT: ExtractAction,