Executes a command with this driver. A value representing the command to execute. A containing the names and values of the parameters of the command. A containing information about the success or failure of the
(string driverCommandToExecute, Dictionary<string, object?>? parameters)
| 572 | /// <returns>A <see cref="Response"/> containing information about the success or failure of the command and any data returned by the command.</returns> |
| 573 | /// <exception cref="ArgumentNullException">If <paramref name="driverCommandToExecute"/> is <see langword="null"/>.</exception> |
| 574 | protected internal virtual async Task<Response> ExecuteAsync(string driverCommandToExecute, Dictionary<string, object?>? parameters) |
| 575 | { |
| 576 | Command commandToExecute = new Command(SessionId, driverCommandToExecute, parameters); |
| 577 | |
| 578 | Response commandResponse = await this.CommandExecutor.ExecuteAsync(commandToExecute).ConfigureAwait(false); |
| 579 | |
| 580 | if (commandResponse.Status != WebDriverResult.Success) |
| 581 | { |
| 582 | UnpackAndThrowOnError(commandResponse, driverCommandToExecute); |
| 583 | } |
| 584 | |
| 585 | return commandResponse; |
| 586 | } |
| 587 | |
| 588 | /// <summary> |
| 589 | /// Starts a session with the driver |
no outgoing calls
no test coverage detected