/// <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());
}