* 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)
| 121 | * @return {!Promise} A promise that will resolve with the command response. |
| 122 | */ |
| 123 | function 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. |
no test coverage detected