From 11b9b0bc7049bef8f95f43f8fb1ffcad06bd03e1 Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Tue, 2 Jul 2024 16:22:54 -0700 Subject: [PATCH] selenium: fix click with async with async you can't chain methods --- automon/integrations/seleniumWrapper/browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automon/integrations/seleniumWrapper/browser.py b/automon/integrations/seleniumWrapper/browser.py index 0e97e213..27ff1267 100644 --- a/automon/integrations/seleniumWrapper/browser.py +++ b/automon/integrations/seleniumWrapper/browser.py @@ -187,7 +187,8 @@ async def action_click( logger.debug(str(dict( xpath=xpath, ))) - return await self.find_element(value=xpath, by=self.by.XPATH, **kwargs).click() + element = await self.find_element(value=xpath, by=self.by.XPATH, **kwargs) + return element.click() except Exception as error: raise Exception(error)