checkResponse(responseObj)code »
Checks that a response object does not specify an error as defined by the
WebDriver wire protocol. If the response object defines an error, it will
be thrown. Otherwise, the response will be returned as is.
Parameters
- responseObj
{status: number, value: *}
The response object to
check.
Returns
{status: number, value: *}
The checked response object.
Throws
bot.Error
If the response describes an error.