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

Function executeCommand

javascript/selenium-webdriver/lib/webdriver.js:123–128  ·  view source on GitHub ↗

* Translates a command to its wire-protocol representation before passing it * to the given `executor` for execution. * @param {!command.Executor} executor The executor to use. * @param {!command.Command} command The command to execute. * @return {!Promise} A promise that will resolve with the c

(executor, command)

Source from the content-addressed store, hash-verified

121 * @return {!Promise} A promise that will resolve with the command response.
122 */
123function executeCommand(executor, command) {
124 return toWireValue(command.getParameters()).then(function (parameters) {
125 command.setParameters(parameters)
126 return executor.execute(command)
127 })
128}
129
130/**
131 * Converts an object to its JSON representation in the WebDriver wire protocol.

Callers 1

createSessionMethod · 0.85

Calls 4

toWireValueFunction · 0.85
setParametersMethod · 0.80
executeMethod · 0.65
getParametersMethod · 0.45

Tested by

no test coverage detected