Exception::$errs
Type: errs
Overrides Exception::$errs
File
-
vendor/
lullabot/ php-webdriver/ lib/ WebDriver/ Exception.php, line 89
Class
- Exception
- WebDriver\Exception class
Namespace
WebDriverCode
private static $errs = array(
// self::SUCCESS => array('Success', 'This should never be thrown!'),
self::NO_SUCH_DRIVER => array(
'NoSuchDriver',
'A session is either terminated or not started',
),
self::NO_SUCH_ELEMENT => array(
'NoSuchElement',
'An element could not be located on the page using the given search parameters.',
),
self::NO_SUCH_FRAME => array(
'NoSuchFrame',
'A request to switch to a frame could not be satisfied because the frame could not be found.',
),
self::UNKNOWN_COMMAND => array(
'UnknownCommand',
'The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource.',
),
self::STALE_ELEMENT_REFERENCE => array(
'StaleElementReference',
'An element command failed because the referenced element is no longer attached to the DOM.',
),
self::ELEMENT_NOT_VISIBLE => array(
'ElementNotVisible',
'An element command could not be completed because the element is not visible on the page.',
),
self::INVALID_ELEMENT_STATE => array(
'InvalidElementState',
'An element command could not be completed because the element is in an invalid state (e.g., attempting to click a disabled element).',
),
self::UNKNOWN_ERROR => array(
'UnknownError',
'An unknown server-side error occurred while processing the command.',
),
self::ELEMENT_IS_NOT_SELECTABLE => array(
'ElementIsNotSelectable',
'An attempt was made to select an element that cannot be selected.',
),
self::JAVASCRIPT_ERROR => array(
'JavaScriptError',
'An error occurred while executing user supplied JavaScript.',
),
self::XPATH_LOOKUP_ERROR => array(
'XPathLookupError',
'An error occurred while searching for an element by XPath.',
),
self::TIMEOUT => array(
'Timeout',
'An operation did not complete before its timeout expired.',
),
self::NO_SUCH_WINDOW => array(
'NoSuchWindow',
'A request to switch to a different window could not be satisfied because the window could not be found.',
),
self::INVALID_COOKIE_DOMAIN => array(
'InvalidCookieDomain',
'An illegal attempt was made to set a cookie under a different domain than the current page.',
),
self::UNABLE_TO_SET_COOKIE => array(
'UnableToSetCookie',
'A request to set a cookie\'s value could not be satisfied.',
),
self::UNEXPECTED_ALERT_OPEN => array(
'UnexpectedAlertOpen',
'A modal dialog was open, blocking this operation',
),
self::NO_ALERT_OPEN_ERROR => array(
'NoAlertOpenError',
'An attempt was made to operate on a modal dialog when one was not open.',
),
self::SCRIPT_TIMEOUT => array(
'ScriptTimeout',
'A script did not complete before its timeout expired.',
),
self::INVALID_ELEMENT_COORDINATES => array(
'InvalidElementCoordinates',
'The coordinates provided to an interactions operation are invalid.',
),
self::IME_NOT_AVAILABLE => array(
'IMENotAvailable',
'IME was not available.',
),
self::IME_ENGINE_ACTIVATION_FAILED => array(
'IMEEngineActivationFailed',
'An IME engine could not be started.',
),
self::INVALID_SELECTOR => array(
'InvalidSelector',
'Argument was an invalid selector (e.g., XPath/CSS).',
),
self::SESSION_NOT_CREATED => array(
'SessionNotCreated',
'A new session could not be created (e.g., a required capability could not be set).',
),
self::MOVE_TARGET_OUT_OF_BOUNDS => array(
'MoveTargetOutOfBounds',
'Target provided for a move action is out of bounds.',
),
self::CURL_EXEC => array(
'CurlExec',
'curl_exec() error.',
),
self::OBSOLETE_COMMAND => array(
'ObsoleteCommand',
'This WebDriver command is obsolete.',
),
self::NO_PARAMETERS_EXPECTED => array(
'NoParametersExpected',
'This HTTP request method expects no parameters.',
),
self::JSON_PARAMETERS_EXPECTED => array(
'JsonParameterExpected',
'This POST request expects a JSON parameter (array).',
),
self::UNEXPECTED_PARAMETERS => array(
'UnexpectedParameters',
'This command does not expect this number of parameters.',
),
self::INVALID_REQUEST => array(
'InvalidRequest',
'This command does not support this HTTP request method.',
),
self::UNKNOWN_LOCATOR_STRATEGY => array(
'UnknownLocatorStrategy',
'This locator strategy is not supported.',
),
self::INVALID_XPATH_SELECTOR => array(
'InvalidSelector',
'Argument was an invalid selector.',
),
self::INVALID_XPATH_SELECTOR_RETURN_TYPER => array(
'InvalidSelector',
'Argument was an invalid selector.',
),
self::ELEMENT_NOT_INTERACTABLE => array(
'ElementNotInteractable',
'A command could not be completed because the element is not pointer- or keyboard interactable.',
),
self::INVALID_ARGUMENT => array(
'InvalidArgument',
'The arguments passed to a command are either invalid or malformed.',
),
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.',
),
self::UNABLE_TO_CAPTURE_SCREEN => array(
'UnableToCaptureScreen',
'A screen capture was made impossible.',
),
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.',
),
self::NO_SUCH_SHADOW_ROOT => array(
'NoSuchShadowRoot',
'The element does not have a shadow root.',
),
self::METHOD_NOT_ALLOWED => array(
'UnsupportedOperation',
'Indicates that a command that should have executed properly cannot be supported for some reason.',
),
// @ss https://w3c.github.io/webdriver/#errors
'element not interactable' => array(
'ElementNotInteractable',
'A command could not be completed because the element is not pointer- or keyboard interactable.',
),
'element not selectable' => array(
'ElementIsNotSelectable',
'An attempt was made to select an element that cannot be selected.',
),
'insecure certificate' => array(
'InsecureCertificate',
'Navigation caused the user agent to hit a certificate warning, which is usually the result of an expired or invalid TLS certificate.',
),
'invalid argument' => array(
'InvalidArgument',
'The arguments passed to a command are either invalid or malformed.',
),
'invalid cookie domain' => array(
'InvalidCookieDomain',
'An illegal attempt was made to set a cookie under a different domain than the current page.',
),
'invalid coordinates' => array(
'InvalidCoordinates',
'The coordinates provided to an interactions operation are invalid.',
),
'invalid element state' => array(
'InvalidElementState',
'A command could not be completed because the element is in an invalid state, e.g. attempting to clear an element that isn\'t both editable and resettable.',
),
'invalid selector' => array(
'InvalidSelector',
'Argument was an invalid selector.',
),
'invalid session id' => array(
'InvalidSessionID',
'Occurs if the given session id is not in the list of active sessions, meaning the session either does not exist or that it\'s not active.',
),
'javascript error' => array(
'JavaScriptError',
'An error occurred while executing JavaScript supplied by the user.',
),
'move target out of bounds' => array(
'MoveTargetOutOfBounds',
'The target for mouse interaction is not in the browser\'s viewport and cannot be brought into that viewport.',
),
'no such alert' => array(
'NoSuchAlert',
'An attempt was made to operate on a modal dialog when one was not open.',
),
'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.',
),
'no such element' => array(
'NoSuchElement',
'An element could not be located on the page using the given search parameters.',
),
'no such frame' => array(
'NoSuchFrame',
'A command to switch to a frame could not be satisfied because the frame could not be found.',
),
'no such window' => array(
'NoSuchWindow',
'A command to switch to a window could not be satisfied because the window could not be found.',
),
'script timeout' => array(
'ScriptTimeout',
'A script did not complete before its timeout expired.',
),
'session not created' => array(
'SessionNotCreated',
'A new session could not be created.',
),
'stale element reference' => array(
'StaleElementReference',
'A command failed because the referenced element is no longer attached to the DOM.',
),
'timeout' => array(
'Timeout',
'An operation did not complete before its timeout expired.',
),
'unable to capture screen' => array(
'UnableToCaptureScreen',
'A screen capture was made impossible.',
),
'unable to set cookie' => array(
'UnableToSetCookie',
'A command to set a cookie\'s value could not be satisfied.',
),
'unexpected alert open' => array(
'UnexpectedAlertOpen',
'A modal dialog was open, blocking this operation.',
),
'unknown command' => array(
'UnknownCommand',
'A command could not be executed because the remote end is not aware of it.',
),
'unknown error' => array(
'UnknownError',
'An unknown error occurred in the remote end while processing the command.',
),
'unknown method' => array(
'UnknownMethod',
'The requested command matched a known URL but did not match an method for that URL.',
),
'unsupported operation' => array(
'UnsupportedOperation',
'Indicates that a command that should have executed properly cannot be supported for some reason.',
),
// obsolete
'detached shadow root' => array(
'DetachedShadowRoot',
'A command failed because the referenced shadow root is no longer attached to the DOM.',
),
'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.',
),
'no such shadow root' => array(
'NoSuchShadowRoot',
'The element does not have a shadow root.',
),
'script timeout error' => array(
'ScriptTimeout',
'A script did not complete before its timeout expired.',
),
);