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)
| 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 |