Skip to content

Commit 00ef684

Browse files
committed
Improve the error output for incorrect usage of page objects
1 parent 40729e8 commit 00ef684

File tree

2 files changed

+213
-0
lines changed

2 files changed

+213
-0
lines changed

seleniumbase/common/exceptions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" SeleniumBase Exceptions
22
NoSuchFileException => Used by self.assert_downloaded_file(...)
3+
OutOfScopeException => Used by BaseCase methods when setUp() is skipped
34
TimeLimitExceededException => Used by "--time-limit=SECONDS"
45
"""
56

@@ -8,5 +9,9 @@ class NoSuchFileException(Exception):
89
pass
910

1011

12+
class OutOfScopeException(Exception):
13+
pass
14+
15+
1116
class TimeLimitExceededException(Exception):
1217
pass

0 commit comments

Comments
 (0)