* Queries a WebDriver server for its current status. * @param {string} url Base URL of the server to query. * @return {!Promise<!Object>} A promise that resolves with * a hash of the server status.
(url)
| 35 | * a hash of the server status. |
| 36 | */ |
| 37 | function getStatus(url) { |
| 38 | const client = new HttpClient(url) |
| 39 | const executor = new Executor(client) |
| 40 | const command = new Command(CommandName.GET_SERVER_STATUS) |
| 41 | return executor.execute(command) |
| 42 | } |
| 43 | |
| 44 | class CancellationError {} |
| 45 |
no test coverage detected