diff --git a/webdriver-spec.html b/webdriver-spec.html index 132dbd05a..5baa29af8 100644 --- a/webdriver-spec.html +++ b/webdriver-spec.html @@ -250,12 +250,12 @@
Let parse result be the result of parsing as JSON with request's body as the argument.
If parse result is an error or if it is a success but its associated data is not an Object object, send an error with status error code invalid argument and jump back to step 1 in this overall algorithm.
+If parse result is an error or if it is a success but its associated data is not an Object object, send an error with error code invalid argument and jump back to step 1 in this overall algorithm.
Otherwise, let parameters beparse result's data.
Otherwise, let parameters be null
+Otherwise, let parameters be null.
Let response data be a command response object obtained by running the remote end steps for command with arguments element id and parameters.
Jump to step 1.
When required to send an error, with error code, a remote end must run the following steps:
+When required to send an error, + with error code, + a remote end must run the following steps:
-Let http status and name be the error response data for error code.
Let data be a new JSON Object.
- -Let message be an implementation-defined string containing a human-readable description of the reason for the error.
Let http status and name + be the error response data for error code. -
Let stacktrace be an implementation-defined string containing a stack trace report of the active stack frames at the time when the error occurred.
Let message be an implementation-defined string + containing a human-readable description of the reason for the error. - -
Set the properties of data with values ("error", name), ("message", message).
Let stacktrace be an implementation-defined string + containing a stack trace report of the active stack frames + at the time when the error occurred. -
Let data be a new JSON Object + initialised with the following properties: + +
error"
+ message"
+ stacktrace"
+ Send a response with status + and data as arguments.
When required to send a response, with arguments status and data, a remote end must run the following steps:
+When required to send a response, + with arguments status and data, + a remote end must run the following steps:
Let response be a new response.
Errors are represented in the WebDriver protocol with a HTTP response with a HTTP status in the 4xx or 5xx range and a JSON body containing details of the error. This JSON body has two fields: error, containing a string indicating the error type and error containing an implementation-defined string containing a human readable description of the kind of error that occured.
Errors are represented in the WebDriver protocol with a HTTP response with a HTTP status in the 4xx or 5xx range and a JSON body containing details of the error. This JSON body has three fields: error, containing a string indicating the error type; message, containing an implementation-defined string with a human readable description of the kind of error that occured; and stacktrace, containing an implementation-defined string with a stack trace report of the active stack frames at the time when the error occurred.
The following table lists each error code, its associated HTTP status, JSON status, and a non-normative description of the error. The error response data for a particular error code is the values of the HTTP Status and JSON Status columns for the row corresponding to that error code.
+The following table lists each error code, its associated HTTP status, JSON error code, and a non-normative description of the error. The error response data for a particular error code is the values of the HTTP Status and JSON Error Code columns for the row corresponding to that error code.