From 1dbdef975008aeb5b238724dbe46e691a5df84e1 Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Mon, 9 Sep 2024 11:48:10 +0800 Subject: [PATCH] use instance attr for custom selection result (#787) --- skyvern/webeye/actions/handler.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index 633fb584..c95d5c87 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -82,9 +82,10 @@ COMMON_INPUT_TAGS = {"input", "textarea", "select"} class CustomSingleSelectResult: - action_result: ActionResult | None = None - value: str | None = None - dropdown_menu: SkyvernElement | None = None + def __init__(self) -> None: + self.action_result: ActionResult | None = None + self.value: str | None = None + self.dropdown_menu: SkyvernElement | None = None async def is_done(self) -> bool: # check if the dropdown menu is still on the page