javascript/node/selenium-webdriver/firefox.js
function configureExecutor(executor) {
  executor.defineCommand(
      ExtensionCommand.GET_CONTEXT,
      'GET',
      '/session/:sessionId/moz/context');

  executor.defineCommand(
      ExtensionCommand.SET_CONTEXT,
      'POST',
      '/session/:sessionId/moz/context');

  executor.defineCommand(
      ExtensionCommand.INSTALL_ADDON,
      'POST',
      '/session/:sessionId/moz/addon/install');

  executor.defineCommand(
      ExtensionCommand.UNINSTALL_ADDON,
      'POST',
      '/session/:sessionId/moz/addon/uninstall');
}
function configureExecutor(executor) {
  executor.defineCommand(
      ExtensionCommand.GET_CONTEXT,
      'GET',
      '/session/:sessionId/moz/context');

  executor.defineCommand(
      ExtensionCommand.SET_CONTEXT,
      'POST',
      '/session/:sessionId/moz/context');

  executor.defineCommand(
      ExtensionCommand.INSTALL_ADDON,
      'POST',
      '/session/:sessionId/moz/addon/install');

  executor.defineCommand(
      ExtensionCommand.UNINSTALL_ADDON,
      'POST',
      '/session/:sessionId/moz/addon/uninstall');
}
function configureExecutor ( executor ) { executor . defineCommand ( ExtensionCommand . GET_CONTEXT , 'GET' , '/session/:sessionId/moz/context' ) ; executor . defineCommand ( ExtensionCommand . SET_CONTEXT , 'POST' , '/session/:sessionId/moz/context' ) ; executor . defineCommand ( ExtensionCommand . INSTALL_ADDON , 'POST' , '/session/:sessionId/moz/addon/install' ) ; executor . defineCommand ( ExtensionCommand . UNINSTALL_ADDON , 'POST' , '/session/:sessionId/moz/addon/uninstall' ) ; }
Configures the given executor with Firefox-specific commands.
@param {!http.Executor} executor the executor to configure.
Configures the given executor with Firefox - specific commands .