feat: add hover action support (#3994)
Co-authored-by: LawyZheng <lawyzheng1106@gmail.com>
This commit is contained in:
@@ -27,6 +27,7 @@ from skyvern.webeye.actions.actions import (
|
||||
DownloadFileAction,
|
||||
DragAction,
|
||||
GotoUrlAction,
|
||||
HoverAction,
|
||||
InputOrSelectContext,
|
||||
InputTextAction,
|
||||
KeypressAction,
|
||||
@@ -166,6 +167,9 @@ def parse_action(
|
||||
if action_type == ActionType.WAIT:
|
||||
return WaitAction(**base_action_dict)
|
||||
|
||||
if action_type == ActionType.HOVER:
|
||||
return HoverAction(**base_action_dict, hold_seconds=action.get("hold_seconds", 0) or 0)
|
||||
|
||||
if action_type == ActionType.COMPLETE:
|
||||
return CompleteAction(
|
||||
**base_action_dict,
|
||||
|
||||
Reference in New Issue
Block a user