MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / configureExecutor

Function configureExecutor

javascript/selenium-webdriver/firefox.js:472–482  ·  view source on GitHub ↗

* Configures the given executor with Firefox-specific commands. * @param {!http.Executor} executor the executor to configure.

(executor)

Source from the content-addressed store, hash-verified

470 * @param {!http.Executor} executor the executor to configure.
471 */
472function configureExecutor(executor) {
473 executor.defineCommand(ExtensionCommand.GET_CONTEXT, 'GET', '/session/:sessionId/moz/context')
474
475 executor.defineCommand(ExtensionCommand.SET_CONTEXT, 'POST', '/session/:sessionId/moz/context')
476
477 executor.defineCommand(ExtensionCommand.INSTALL_ADDON, 'POST', '/session/:sessionId/moz/addon/install')
478
479 executor.defineCommand(ExtensionCommand.UNINSTALL_ADDON, 'POST', '/session/:sessionId/moz/addon/uninstall')
480
481 executor.defineCommand(ExtensionCommand.FULL_PAGE_SCREENSHOT, 'GET', '/session/:sessionId/moz/screenshot/full')
482}
483
484/**
485 * Creates {@link selenium-webdriver/remote.DriverService} instances that manage

Callers 2

createExecutorFunction · 0.70
createSessionMethod · 0.70

Calls 1

defineCommandMethod · 0.65

Tested by

no test coverage detected