Skip to content

Commit 77c4b5a

Browse files
committed
Update SeleniumBase exceptions
1 parent 5785ad6 commit 77c4b5a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

seleniumbase/common/exceptions.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
""" SeleniumBase Exceptions
2-
NoSuchFileException => Used by self.assert_downloaded_file(...)
3-
NotUsingChromeException => Used by Chrome-only methods if not using Chrome
4-
OutOfScopeException => Used by BaseCase methods when setUp() is skipped
5-
TimeLimitExceededException => Used by "--time-limit=SECONDS"
2+
NoSuchFileException => Called when self.assert_downloaded_file(...) fails.
3+
NotUsingChromeException => Used by Chrome-only methods if not using Chrome.
4+
OutOfScopeException => Used by BaseCase methods when setUp() is skipped.
5+
TextNotVisibleException => Called when expected text fails to appear.
6+
TimeLimitExceededException => Called when exceeding "--time-limit=SECONDS".
67
"""
8+
from selenium.common.exceptions import WebDriverException
79

810

911
class NoSuchFileException(Exception):
1012
pass
1113

1214

13-
class NotUsingChromeException(Exception):
15+
class NotUsingChromeException(WebDriverException):
1416
pass
1517

1618

1719
class OutOfScopeException(Exception):
1820
pass
1921

2022

21-
class TimeLimitExceededException(Exception):
23+
class TextNotVisibleException(WebDriverException):
2224
pass
2325

2426

25-
class TextNotVisibleException(Exception):
27+
class TimeLimitExceededException(Exception):
2628
pass

0 commit comments

Comments
 (0)