Skip to content

Commit

Permalink
Update SeleniumBase exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed May 26, 2022
1 parent 5785ad6 commit 77c4b5a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions seleniumbase/common/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
""" SeleniumBase Exceptions
NoSuchFileException => Used by self.assert_downloaded_file(...)
NotUsingChromeException => Used by Chrome-only methods if not using Chrome
OutOfScopeException => Used by BaseCase methods when setUp() is skipped
TimeLimitExceededException => Used by "--time-limit=SECONDS"
NoSuchFileException => Called when self.assert_downloaded_file(...) fails.
NotUsingChromeException => Used by Chrome-only methods if not using Chrome.
OutOfScopeException => Used by BaseCase methods when setUp() is skipped.
TextNotVisibleException => Called when expected text fails to appear.
TimeLimitExceededException => Called when exceeding "--time-limit=SECONDS".
"""
from selenium.common.exceptions import WebDriverException


class NoSuchFileException(Exception):
pass


class NotUsingChromeException(Exception):
class NotUsingChromeException(WebDriverException):
pass


class OutOfScopeException(Exception):
pass


class TimeLimitExceededException(Exception):
class TextNotVisibleException(WebDriverException):
pass


class TextNotVisibleException(Exception):
class TimeLimitExceededException(Exception):
pass

0 comments on commit 77c4b5a

Please sign in to comment.