MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / configureExecutor

Function configureExecutor

javascript/selenium-webdriver/firefox.js:473–483  ·  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

471 * @param {!http.Executor} executor the executor to configure.
472 */
473function configureExecutor(executor) {
474 executor.defineCommand(ExtensionCommand.GET_CONTEXT, 'GET', '/session/:sessionId/moz/context')
475
476 executor.defineCommand(ExtensionCommand.SET_CONTEXT, 'POST', '/session/:sessionId/moz/context')
477
478 executor.defineCommand(ExtensionCommand.INSTALL_ADDON, 'POST', '/session/:sessionId/moz/addon/install')
479
480 executor.defineCommand(ExtensionCommand.UNINSTALL_ADDON, 'POST', '/session/:sessionId/moz/addon/uninstall')
481
482 executor.defineCommand(ExtensionCommand.FULL_PAGE_SCREENSHOT, 'GET', '/session/:sessionId/moz/screenshot/full')
483}
484
485/**
486 * 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