private static UnpackAndThrowOnError ( OpenQA.Selenium.Remote.Response errorResponse ) : void | ||
errorResponse | OpenQA.Selenium.Remote.Response | |
return | void |
protected virtual Response Execute(string driverCommandToExecute, Dictionary <string, object> parameters) { Command commandToExecute = new Command(this.sessionId, driverCommandToExecute, parameters); Response response = new Response(); try { response = this.executor.Execute(commandToExecute); } catch (WebException value) { response.Status = WebDriverResult.UnhandledError; response.Value = value; } if (response.Status != WebDriverResult.Success) { RemoteWebDriver.UnpackAndThrowOnError(response); } return(response); }