File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
""" 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".
6
7
"""
8
+ from selenium .common .exceptions import WebDriverException
7
9
8
10
9
11
class NoSuchFileException (Exception ):
10
12
pass
11
13
12
14
13
- class NotUsingChromeException (Exception ):
15
+ class NotUsingChromeException (WebDriverException ):
14
16
pass
15
17
16
18
17
19
class OutOfScopeException (Exception ):
18
20
pass
19
21
20
22
21
- class TimeLimitExceededException ( Exception ):
23
+ class TextNotVisibleException ( WebDriverException ):
22
24
pass
23
25
24
26
25
- class TextNotVisibleException (Exception ):
27
+ class TimeLimitExceededException (Exception ):
26
28
pass
You can’t perform that action at this time.
0 commit comments