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

Function configureExecutor

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

376 * @param {!http.Executor} executor the executor to configure.
377 */
378function configureExecutor(executor) {
379 executor.defineCommand(ExtensionCommand.GET_CONTEXT, 'GET', '/session/:sessionId/moz/context')
380
381 executor.defineCommand(ExtensionCommand.SET_CONTEXT, 'POST', '/session/:sessionId/moz/context')
382
383 executor.defineCommand(ExtensionCommand.INSTALL_ADDON, 'POST', '/session/:sessionId/moz/addon/install')
384
385 executor.defineCommand(ExtensionCommand.UNINSTALL_ADDON, 'POST', '/session/:sessionId/moz/addon/uninstall')
386
387 executor.defineCommand(ExtensionCommand.FULL_PAGE_SCREENSHOT, 'GET', '/session/:sessionId/moz/screenshot/full')
388}
389
390/**
391 * 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