feat: add hover action support (#3994)
Co-authored-by: LawyZheng <lawyzheng1106@gmail.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user