MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ExecuteAsync

Method ExecuteAsync

dotnet/src/webdriver/WebDriver.cs:574–586  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

ExecuteMethod · 0.95
DisposeAsyncCoreMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected