* Creates a command executor with support for Marionette's custom commands. * @param {!Promise } serverUrl The server's URL. * @return {!command.Executor} The new command executor.
(serverUrl)
| 459 | * @return {!command.Executor} The new command executor. |
| 460 | */ |
| 461 | function createExecutor(serverUrl) { |
| 462 | let client = serverUrl.then((url) => new http.HttpClient(url)) |
| 463 | let executor = new http.Executor(client) |
| 464 | configureExecutor(executor) |
| 465 | return executor |
| 466 | } |
| 467 | |
| 468 | /** |
| 469 | * Configures the given executor with Firefox-specific commands. |
no test coverage detected