FirefoxDriver.Marionette Class
Firefox Autotest (Marionette) connection handler & request executor
Item Index
Methods
_loadCommands
()
private
chainable
Loads the marionette commands from the commands library
_onData
(
private
chainable
-
data
Handles the incoming data from the marionette sockets
Parameters:
-
dataBuffer
_onError
(
private
chainable
-
err
Will be called if a socket error occurs
Parameters:
-
errBuffer
_parseMessage
(
Object
private
-
data
Parses a marionette response message
Parameters:
-
dataBuffer
Returns:
Object:
message
_parseRequestKey
(
String
private
-
placeholder -
params
Templating function that replaces placeholders in commands with their actual values
Parameters:
-
placeholderString -
paramsObject
Returns:
String:
content
_sendCommand
(
private
chainable
-
command -
deferred
Issues a command to the marionette server Generates a reference to the last called command, so that we are able to call the right receiver function for the response from marionette
Parameters:
-
commandObject -
deferredQ.promise
addCommand
(
Object
public
-
command
Generates a function & an event listener for every marionette command
Parameters:
-
commandObject
Returns:
Object:
command
connect
(
Q.promise
public
-
marionettePort
Opens the marionette socket
Parameters:
-
marionettePortInteger
Returns:
Q.promise:
promise
kill
()
Q.promise
public
Closes the marionette socket & cleans up
Returns:
Q.promise:
promise
