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

Method PinScript

dotnet/src/webdriver/IJavaScriptEngine.cs:113–113  ·  view source on GitHub ↗

Pins a JavaScript snippet for execution in the browser without transmitting the entire script across the wire for every execution. The JavaScript to pin A task containing a object to use to execute the script. If is

([StringSyntax(StringSyntaxConstants.JavaScript)] string script)

Source from the content-addressed store, hash-verified

111 /// <returns>A task containing a <see cref="PinnedScript"/> object to use to execute the script.</returns>
112 /// <exception cref="ArgumentNullException">If <paramref name="script"/> is <see langword="null"/>.</exception>
113 Task<PinnedScript> PinScript([StringSyntax(StringSyntaxConstants.JavaScript)] string script);
114
115 /// <summary>
116 /// Unpins a previously pinned script from the browser.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected