File tree Expand file tree Collapse file tree 1 file changed +48
-12
lines changed Expand file tree Collapse file tree 1 file changed +48
-12
lines changed Original file line number Diff line number Diff line change 1
1
class ConnectionFailed (Exception ):
2
- pass
2
+ message = "Failed to connect to the browser"
3
+
4
+ def __str__ (self ):
5
+ return self .message
3
6
4
7
5
8
class InvalidCommand (Exception ):
6
- pass
9
+ message = "The command provided is invalid"
10
+
11
+ def __str__ (self ):
12
+ return self .message
7
13
8
14
9
15
class InvalidCallback (Exception ):
10
- pass
16
+ message = "The callback provided is invalid"
17
+
18
+ def __str__ (self ):
19
+ return self .message
11
20
12
21
13
22
class NetworkError (Exception ):
14
- pass
23
+ message = "A network error occurred"
24
+
25
+ def __str__ (self ):
26
+ return self .message
15
27
16
28
17
29
class InvalidResponse (Exception ):
18
- pass
30
+ message = "The response received is invalid"
31
+
32
+ def __str__ (self ):
33
+ return self .message
19
34
20
35
21
36
class ReconnectionFailed (Exception ):
22
- pass
37
+ message = "Failed to reconnect to the browser"
38
+
39
+ def __str__ (self ):
40
+ return self .message
23
41
24
42
25
43
class ResendCommandFailed (Exception ):
26
- pass
44
+ message = "Failed to resend the command"
45
+
46
+ def __str__ (self ):
47
+ return self .message
27
48
28
49
29
50
class BrowserNotRunning (Exception ):
30
- pass
51
+ message = "The browser is not running"
52
+
53
+ def __str__ (self ):
54
+ return self .message
31
55
32
56
33
57
class ElementNotFound (Exception ):
34
- pass
58
+ message = "The specified element was not found"
59
+
60
+ def __str__ (self ):
61
+ return self .message
35
62
36
63
37
64
class ClickIntercepted (Exception ):
38
- pass
65
+ message = "The click was intercepted"
66
+
67
+ def __str__ (self ):
68
+ return self .message
39
69
40
70
41
71
class ElementNotVisible (Exception ):
42
- pass
72
+ message = "The element is not visible"
73
+
74
+ def __str__ (self ):
75
+ return self .message
43
76
44
77
45
78
class ElementNotInteractable (Exception ):
46
- pass
79
+ message = "The element is not interactable"
80
+
81
+ def __str__ (self ):
82
+ return self .message
You can’t perform that action at this time.
0 commit comments