* 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)
| 364 | * @return {!command.Executor} The new command executor. |
| 365 | */ |
| 366 | function createExecutor(serverUrl) { |
| 367 | let client = serverUrl.then((url) => new http.HttpClient(url)) |
| 368 | let executor = new http.Executor(client) |
| 369 | executor[Symbols.localDriverService] = true |
| 370 | configureExecutor(executor) |
| 371 | return executor |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * Configures the given executor with Firefox-specific commands. |
no test coverage detected