View Sourcemodule selenium-webdriver/http/utilVarious HTTP utilities. FunctionsgetStatus(url)code »Queries a WebDriver server for its current status. ParametersurlstringBase URL of the server to query. Returnswebdriver.promise.Promise<Object>A promise that resolves with a hash of the server status. waitForServer(url, timeout)code »Waits for a WebDriver server to be healthy and accepting requests. ParametersurlstringBase URL of the server to query. timeoutnumberHow long to wait for the server. Returnswebdriver.promise.PromiseA promise that will resolve when the server is ready. waitForUrl(url, timeout)code »Polls a URL with GET requests until it returns a 2xx response or the timeout expires. ParametersurlstringThe URL to poll. timeoutnumberHow long to wait, in milliseconds. Returnswebdriver.promise.PromiseA promise that will resolve when the URL responds with 2xx.