Class: WebDriverError

WebDriverError(xopt)

WebDriverError is the prototypal parent of all WebDriver errors. It should not be used directly, as it does not correspond to a real error in the specification.

Constructor

new WebDriverError(xopt)

Parameters:
Name Type Attributes Description
x string | Error <optional>

Optional string describing error situation or Error instance to propagate.

Source:

Methods

(static) fromJSON(json) → {Error}

Unmarshals a JSON error representation to the appropriate Marionette error type.

Parameters:
Name Type Description
json Object.<string, string>

Error object.

Source:
Returns:

Error prototype.

Type
Error

toJSON() → {Object.<string, string>}

Source:
Returns:

JSON serialisation of error prototype.

Type
Object.<string, string>