Executes JavaScript in the context of the currently selected frame or window The JavaScript code to execute. The arguments to the script. The value returned by the script.
([StringSyntax(StringSyntaxConstants.JavaScript)] string script, params object?[]? args)
| 253 | /// <param name="args">The arguments to the script.</param> |
| 254 | /// <returns>The value returned by the script.</returns> |
| 255 | public object? ExecuteScript([StringSyntax(StringSyntaxConstants.JavaScript)] string script, params object?[]? args) |
| 256 | { |
| 257 | return this.ExecuteScriptCommand(script, DriverCommand.ExecuteScript, args); |
| 258 | } |
| 259 | |
| 260 | /// <summary> |
| 261 | /// Executes JavaScript in the context of the currently selected frame or window |
no test coverage detected