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

Method ExecuteAsyncScript

dotnet/src/webdriver/WebDriver.cs:244–247  ·  view source on GitHub ↗

Executes JavaScript "asynchronously" in the context of the currently selected frame or window, executing the callback function specified as the last argument in the list of arguments. The JavaScript code to execute. The arguments to the script. The value returned by the script.

([StringSyntax(StringSyntaxConstants.JavaScript)] string script, params object?[]? args)

Source from the content-addressed store, hash-verified

242 /// <param name="args">The arguments to the script.</param>
243 /// <returns>The value returned by the script.</returns>
244 public object? ExecuteAsyncScript([StringSyntax(StringSyntaxConstants.JavaScript)] string script, params object?[]? args)
245 {
246 return this.ExecuteScriptCommand(script, DriverCommand.ExecuteAsyncScript, args);
247 }
248
249 /// <summary>
250 /// Executes JavaScript in the context of the currently selected frame or window

Calls 1

ExecuteScriptCommandMethod · 0.95