No longer swallow exceptions for navigation to malformed URLs in .NET
@@ -195,38 +195,8 @@ public string Url
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("url", value);
-
- try
- {
this.Execute(DriverCommand.Get, parameters);
}
- catch (WebDriverTimeoutException)
- {
- // WebDriverTimeoutException is a subclass of WebDriverException,
- // and should be rethrown instead of caught by the catch block
- // for WebDriverExceptions.
- throw;
- }
- catch (WebDriverException)
- {
- // Catch the exeception, if any. This is consistent with other
- // drivers, in that no exeception is thrown when going to an
- // invalid URL.
- }
- catch (InvalidOperationException)
- {
- // Catch the exeception, if any. This is consistent with other
- // drivers, in that no exeception is thrown when going to an
- // invalid URL.
- }
- catch (NotImplementedException)
- {
- // Chrome throws NotImplementedException if the URL is invalid.
- // Catch the exeception, if any. This is consistent with other
- // drivers, in that no exeception is thrown when going to an
- // invalid URL.
- }
- }
}
/// <summary>
