-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |