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:
-
data
Buffer
_onError
(
private
chainable
-
err
Will be called if a socket error occurs
Parameters:
-
err
Buffer
_parseMessage
(
Object
private
-
data
Parses a marionette response message
Parameters:
-
data
Buffer
Returns:
Object:
message
_parseRequestKey
(
String
private
-
placeholder
-
params
Templating function that replaces placeholders in commands with their actual values
Parameters:
-
placeholder
String -
params
Object
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:
-
command
Object -
deferred
Q.promise
addCommand
(
Object
public
-
command
Generates a function & an event listener for every marionette command
Parameters:
-
command
Object
Returns:
Object:
command
connect
(
Q.promise
public
-
marionettePort
Opens the marionette socket
Parameters:
-
marionettePort
Integer
Returns:
Q.promise:
promise
kill
()
Q.promise
public
Closes the marionette socket & cleans up
Returns:
Q.promise:
promise