MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / isErrorResponse

Function isErrorResponse

javascript/selenium-webdriver/lib/error.js:508–510  ·  view source on GitHub ↗

* Tests if the given value is a valid error response object according to the * W3C WebDriver spec. * * @param {?} data The value to test. * @return {boolean} Whether the given value data object is a valid error * response. * @see https://w3c.github.io/webdriver/webdriver-spec.html#protocol

(data)

Source from the content-addressed store, hash-verified

506 * @see https://w3c.github.io/webdriver/webdriver-spec.html#protocol
507 */
508function isErrorResponse(data) {
509 return isObject(data) && typeof data.error === 'string'
510}
511
512/**
513 * Throws an error coded from the W3C protocol. A generic error will be thrown

Callers 1

throwDecodedErrorFunction · 0.85

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected