Skip to content

Commit

Permalink
selenium: don't raise when missing webdriver path
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Sep 25, 2024
1 parent def9f85 commit c36c249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions automon/integrations/seleniumWrapper/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,6 @@ def run(self) -> bool:
return run
except Exception as exception:
logger.error(f'webdriver :: run :: failed :: {exception=}')
raise Exception(f'webdriver :: run :: failed :: {exception=}')

return False

def save_cookies_for_current_url(self) -> bool:
Expand Down
4 changes: 2 additions & 2 deletions automon/integrations/seleniumWrapper/webdriver_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ def run(self) -> bool:
return True

self._webdriver = selenium.webdriver.Chrome(options=self.chrome_options)
logger.info(f'{self}')
logger.info(f'webdriver :: chrome :: run :: {self=}')

return True
except Exception as exception:
raise Exception(f'webdriver :: chrome :: run :: failed :: {exception}')
raise Exception(f'webdriver :: chrome :: run :: failed :: {exception=}')

def set_chromedriver(self, chromedriver_path: str):
logger.debug(f'{chromedriver_path}')
Expand Down

0 comments on commit c36c249

Please sign in to comment.