Update SeleniumBase exceptions
This commit is contained in:
parent
5785ad62ed
commit
77c4b5a72d
|
@ -1,16 +1,18 @@
|
|||
""" 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
|
||||
|
||||
|
||||
|
@ -18,9 +20,9 @@ class OutOfScopeException(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class TextNotVisibleException(WebDriverException):
|
||||
pass
|
||||
|
||||
|
||||
class TimeLimitExceededException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class TextNotVisibleException(Exception):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue