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

Method ExecuteScript

dotnet/src/webdriver/WebDriver.cs:255–258  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

FindElementsMethod · 0.45
WindowMethod · 0.45
WebElementClass · 0.45
SubmitMethod · 0.45

Calls 3

ExecuteScriptCommandMethod · 0.95
ThrowIfNullMethod · 0.80
MakeExecutionScriptMethod · 0.80

Tested by

no test coverage detected