Update SeleniumBase exceptions

This commit is contained in:
Michael Mintz 2022-05-25 21:55:44 -04:00
parent 5785ad62ed
commit 77c4b5a72d
1 changed files with 11 additions and 9 deletions

View File

@ -1,16 +1,18 @@
""" SeleniumBase Exceptions """ SeleniumBase Exceptions
NoSuchFileException => Used by self.assert_downloaded_file(...) NoSuchFileException => Called when self.assert_downloaded_file(...) fails.
NotUsingChromeException => Used by Chrome-only methods if not using Chrome NotUsingChromeException => Used by Chrome-only methods if not using Chrome.
OutOfScopeException => Used by BaseCase methods when setUp() is skipped OutOfScopeException => Used by BaseCase methods when setUp() is skipped.
TimeLimitExceededException => Used by "--time-limit=SECONDS" TextNotVisibleException => Called when expected text fails to appear.
TimeLimitExceededException => Called when exceeding "--time-limit=SECONDS".
""" """
from selenium.common.exceptions import WebDriverException
class NoSuchFileException(Exception): class NoSuchFileException(Exception):
pass pass
class NotUsingChromeException(Exception): class NotUsingChromeException(WebDriverException):
pass pass
@ -18,9 +20,9 @@ class OutOfScopeException(Exception):
pass pass
class TextNotVisibleException(WebDriverException):
pass
class TimeLimitExceededException(Exception): class TimeLimitExceededException(Exception):
pass pass
class TextNotVisibleException(Exception):
pass