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

Function createExecutor

javascript/selenium-webdriver/chromium.js:111–117  ·  view source on GitHub ↗

* Creates a command executor with support for Chromium's custom commands. * @param {!Promise } url The server's URL. * @param vendorPrefix * @return {!command.Executor} The new command executor.

(url, vendorPrefix)

Source from the content-addressed store, hash-verified

109 * @return {!command.Executor} The new command executor.
110 */
111function createExecutor(url, vendorPrefix) {
112 const agent = new http.Agent({ keepAlive: true })
113 const client = url.then((url) => new http.HttpClient(url, agent))
114 const executor = new http.Executor(client)
115 configureExecutor(executor, vendorPrefix)
116 return executor
117}
118
119/**
120 * Configures the given executor with Chromium-specific commands.

Callers 1

createSessionMethod · 0.70

Calls 1

configureExecutorFunction · 0.70

Tested by

no test coverage detected