Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Improve listbox option selection handling by using get() method and adding a check for None (#2788)
Prakash Maheshwaran11ca5b7250d5
diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.pyindex fd7edc1ce..f1383a2a1 100644--- a/skyvern/webeye/actions/handler.py+++ b/skyvern/webeye/actions/handler.py@@ -3421,7 +3421,9 @@ async def click_listbox_option(action: actions.SelectOptionAction,listbox_element_id: str,) -> bool:- listbox_element = scraped_page.id_to_element_dict[listbox_element_id]+ listbox_element = scraped_page.id_to_element_dict.get(listbox_element_id)+ if listbox_element is None:+ return False# this is a listbox element, get all the childrenif "children" not in listbox_element:return False