UnpackAndThrowOnError() 개인적인 정적인 메소드

private static UnpackAndThrowOnError ( OpenQA.Selenium.Remote.Response errorResponse ) : void
errorResponse OpenQA.Selenium.Remote.Response
리턴 void
예제 #1
0
        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);
        }