From c75edfacacfa022d753469626ef842dbec66383a Mon Sep 17 00:00:00 2001 From: naisanzaa Date: Tue, 2 Jul 2024 18:39:01 -0700 Subject: [PATCH] selenium: add find_elements --- automon/integrations/seleniumWrapper/browser.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/automon/integrations/seleniumWrapper/browser.py b/automon/integrations/seleniumWrapper/browser.py index 71f76c00..fd8963ff 100644 --- a/automon/integrations/seleniumWrapper/browser.py +++ b/automon/integrations/seleniumWrapper/browser.py @@ -380,6 +380,19 @@ async def find_element( ))) return self.webdriver.find_element(value=value, by=by, **kwargs) + async def find_elements( + self, + value: str, + by: By.ID = By.ID, + **kwargs + ) -> selenium.webdriver.Chrome.find_elements: + """find elements""" + logger.info(str(dict( + current_url=self.current_url, + value=value, + ))) + return self.webdriver.find_elements(value=value, by=by, **kwargs) + async def find_xpath( self, value: str,