Skip to content

Commit 921b224

Browse files
RenderMichaelsandeepsuryaprasad
authored andcommitted
[dotnet] Do not intercept exceptions from ICommandExecutor.ExecuteAsync (SeleniumHQ#14892)
1 parent c95ad05 commit 921b224

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

dotnet/src/webdriver/WebDriver.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -612,20 +612,7 @@ protected virtual async Task<Response> ExecuteAsync(string driverCommandToExecut
612612
{
613613
Command commandToExecute = new Command(SessionId, driverCommandToExecute, parameters);
614614

615-
Response commandResponse;
616-
617-
try
618-
{
619-
commandResponse = await this.executor.ExecuteAsync(commandToExecute).ConfigureAwait(false);
620-
}
621-
catch (System.Net.Http.HttpRequestException e)
622-
{
623-
commandResponse = new Response
624-
{
625-
Status = WebDriverResult.UnknownError,
626-
Value = e
627-
};
628-
}
615+
Response commandResponse = await this.executor.ExecuteAsync(commandToExecute).ConfigureAwait(false);
629616

630617
if (commandResponse.Status != WebDriverResult.Success)
631618
{

0 commit comments

Comments
 (0)