Namespace bot.response
code »Show:
Type Definitions
Type definition for a response object, as defined by the JSON wire protocol.
Global Functions
code »bot.response.checkResponse ( responseObj ) ⇒ !bot.response.ResponseObject
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.
!bot.response.ResponseObject
Parameters |
---|
|
Returns |
|
Throws |
|
Converts an error value into its JSON representation as defined by the
WebDriver wire protocol.
Creates a new success response object with the provided value.
Parameters |
---|
|
Returns |
|
code »bot.response.isResponseObject ( value ) ⇒ boolean
boolean
Parameters |
---|
|
Returns |
|