Skip to content

Commit

Permalink
Add handler for NoSuchDriver status in RemoteWebDriver for .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Oct 12, 2016
1 parent 603eb5e commit fbd8529
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dotnet/src/webdriver/Remote/RemoteWebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,9 @@ private static void UnpackAndThrowOnError(Response errorResponse)
case WebDriverResult.InvalidSelector:
throw new InvalidSelectorException(errorMessage);

case WebDriverResult.NoSuchDriver:
throw new WebDriverException(errorMessage);

default:
throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "{0} ({1})", errorMessage, errorResponse.Status));
}
Expand Down

0 comments on commit fbd8529

Please sign in to comment.