Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
bugfix (#2254)
Shuchang Zheng0eff92632cd3
diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.pyindex 15df13be1..874b69259 100644--- a/skyvern/webeye/actions/handler.py+++ b/skyvern/webeye/actions/handler.py@@ -732,7 +732,7 @@ async def handle_input_text_action(option=SelectOption(label=text),intention=action.intention,)- if skyvern_element.get_selectable():+ if await skyvern_element.get_selectable():LOG.info("Input element is selectable, doing select actions",task_id=task.task_id,diff --git a/skyvern/webeye/utils/dom.py b/skyvern/webeye/utils/dom.pyindex 9effac214..ffb5aa2e8 100644--- a/skyvern/webeye/utils/dom.py+++ b/skyvern/webeye/utils/dom.py@@ -275,7 +275,7 @@ class SkyvernElement:return disabled or aria_disabled or style_disabledasync def is_selectable(self) -> bool:- return self.get_selectable() or self.get_tag_name() in SELECTABLE_ELEMENT+ return await self.get_selectable() or self.get_tag_name() in SELECTABLE_ELEMENTasync def is_visible(self, must_visible_style: bool = True) -> bool:if not await self.get_locator().count():@@ -300,9 +300,9 @@ class SkyvernElement:def get_element_dict(self) -> dict:return self.__static_element- def get_selectable(self) -> bool:+ async def get_selectable(self) -> bool:if self.get_tag_name() == InteractiveElement.INPUT:- input_type = self.get_attr("type", mode="static")+ input_type = await self.get_attr("type", mode="static")if input_type == "select-one" or input_type == "select-multiple":return Truereturn self._selectable