File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ class OutOfScopeException(Exception):
20
20
21
21
class TimeLimitExceededException (Exception ):
22
22
pass
23
+
24
+
25
+ class TextNotVisibleException (Exception ):
26
+ pass
Original file line number Diff line number Diff line change 8
8
from selenium .common .exceptions import NoSuchElementException
9
9
from selenium .common .exceptions import NoSuchFrameException
10
10
from selenium .common .exceptions import NoSuchWindowException
11
+ from seleniumbase .common .exceptions import TextNotVisibleException
11
12
from seleniumbase import config as sb_config
12
13
13
14
@@ -28,6 +29,10 @@ def format_exc(exception, message):
28
29
exc = NoSuchElementException
29
30
elif exception == "NoSuchElementException" :
30
31
exc = NoSuchElementException
32
+ elif exception == TextNotVisibleException :
33
+ exc = TextNotVisibleException
34
+ elif exception == "TextNotVisibleException" :
35
+ exc = TextNotVisibleException
31
36
elif exception == NoAlertPresentException :
32
37
exc = NoAlertPresentException
33
38
elif exception == "NoAlertPresentException" :
You can’t perform that action at this time.
0 commit comments