You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/WebDriver/Exception.php
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,15 @@ abstract class Exception extends \Exception
60
60
constINVALID_SELECTOR = 32;
61
61
constSESSION_NOT_CREATED = 33;
62
62
constMOVE_TARGET_OUT_OF_BOUNDS = 34;
63
+
constINVALID_XPATH_SELECTOR = 51;
64
+
constINVALID_XPATH_SELECTOR_RETURN_TYPER = 52;
65
+
constELEMENT_NOT_INTERACTABLE = 60;
66
+
constINVALID_ARGUMENT = 61;
67
+
constNO_SUCH_COOKIE = 62;
68
+
constUNABLE_TO_CAPTURE_SCREEN = 63;
69
+
constELEMENT_CLICK_INTERCEPTED = 64;
70
+
constNO_SUCH_SHADOW_ROOT = 65;
71
+
constMETHOD_NOT_ALLOWED = 405;
63
72
64
73
// obsolete
65
74
constINDEX_OUT_OF_BOUNDS = 1;
@@ -124,6 +133,15 @@ abstract class Exception extends \Exception
124
133
self::UNEXPECTED_PARAMETERS => array('UnexpectedParameters', 'This command does not expect this number of parameters.'),
125
134
self::INVALID_REQUEST => array('InvalidRequest', 'This command does not support this HTTP request method.'),
126
135
self::UNKNOWN_LOCATOR_STRATEGY => array('UnknownLocatorStrategy', 'This locator strategy is not supported.'),
136
+
self::INVALID_XPATH_SELECTOR => array('InvalidSelector', 'Argument was an invalid selector.'),
137
+
self::INVALID_XPATH_SELECTOR_RETURN_TYPER => array('InvalidSelector', 'Argument was an invalid selector.'),
138
+
self::ELEMENT_NOT_INTERACTABLE => array('ElementNotInteractable', 'A command could not be completed because the element is not pointer- or keyboard interactable.'),
139
+
self::INVALID_ARGUMENT => array('InvalidArgument', 'The arguments passed to a command are either invalid or malformed.'),
140
+
self::NO_SUCH_COOKIE => array('NoSuchCookie', 'No cookie matching the given path name was found amongst the associated cookies of the current browsing context\'s active document.'),
141
+
self::UNABLE_TO_CAPTURE_SCREEN => array('UnableToCaptureScreen', 'A screen capture was made impossible.'),
142
+
self::ELEMENT_CLICK_INTERCEPTED => array('ElementClickIntercepted', 'The Element Click command could not be completed because the element receiving the events is obscuring the element that was requested clicked.'),
143
+
self::NO_SUCH_SHADOW_ROOT => array('NoSuchShadowRoot', 'The element does not have a shadow root.'),
144
+
self::METHOD_NOT_ALLOWED => array('UnsupportedOperation', 'Indicates that a command that should have executed properly cannot be supported for some reason.'),
127
145
128
146
// @link https://w3c.github.io/webdriver/#errors
129
147
'detached shadow root' => array('DetachedShadowRoot', 'A command failed because the referenced shadow root is no longer attached to the DOM.'),
0 commit comments