OpenQA.Selenium.Remote.RemoteWebDriver.InternalExecute C# (CSharp) Method

InternalExecute() private method

Executes commands with the driver
private InternalExecute ( DriverCommand driverCommandToExecute, object>.Dictionary parameters ) : OpenQA.Selenium.Remote.Response
driverCommandToExecute DriverCommand Command that needs executing
parameters object>.Dictionary Parameters needed for the command
return OpenQA.Selenium.Remote.Response
        internal Response InternalExecute(DriverCommand driverCommandToExecute, Dictionary<string, object> parameters)
        {
            return this.Execute(driverCommandToExecute, parameters);
        }

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Returns local storage value given a key.
        /// </summary>
        /// <param name="key"></param>
        /// <returns>A local storage <see cref="string"/> value given a key, if present, otherwise returns null.</returns>
        public string GetItem(string key)
        {
            Dictionary <string, object> parameters = new Dictionary <string, object>();

            parameters.Add("key", key);
            Response commandResponse = driver.InternalExecute(DriverCommand.GetLocalStorageItem, parameters);

            if (commandResponse.Value == null)
            {
                return(null);
            }

            return(commandResponse.Value.ToString());
        }
All Usage Examples Of OpenQA.Selenium.Remote.RemoteWebDriver::InternalExecute