Skip to content

Commit

Permalink
selenium: add find_elements
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Jul 3, 2024
1 parent cb7b0ab commit c75edfa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions automon/integrations/seleniumWrapper/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c75edfa

Please sign in to comment.