| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>Class CallFunctionOnCommandSettings </title> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <meta name="title" content="Class CallFunctionOnCommandSettings "> |
| |
| <meta name="description" content="Calls function with given declaration on the given object. Object group of the result is inherited from the target object."> |
| <link rel="icon" href="../images/favicon.ico"> |
| <link rel="stylesheet" href="../public/docfx.min.css"> |
| <link rel="stylesheet" href="../public/main.css"> |
| <meta name="docfx:navrel" content="../toc.html"> |
| <meta name="docfx:tocrel" content="toc.html"> |
| |
| <meta name="docfx:rel" content="../"> |
| |
| |
| <meta name="docfx:docurl" content="https://github.com/SeleniumHQ/selenium/new/docfix/apiSpec/new?filename=OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings.md&value=---%0Auid%3A%20OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A"> |
| <meta name="loc:inThisArticle" content="In this article"> |
| <meta name="loc:searchResultsCount" content="{count} results for "{query}""> |
| <meta name="loc:searchNoResults" content="No results for "{query}""> |
| <meta name="loc:tocFilter" content="Filter by title"> |
| <meta name="loc:nextArticle" content="Next"> |
| <meta name="loc:prevArticle" content="Previous"> |
| <meta name="loc:themeLight" content="Light"> |
| <meta name="loc:themeDark" content="Dark"> |
| <meta name="loc:themeAuto" content="Auto"> |
| <meta name="loc:changeTheme" content="Change theme"> |
| <meta name="loc:copy" content="Copy"> |
| <meta name="loc:downloadPdf" content="Download PDF"> |
| |
| <script type="module" src="./../public/docfx.min.js"></script> |
| |
| <script> |
| const theme = localStorage.getItem('theme') || 'auto' |
| document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme) |
| </script> |
| |
| </head> |
| |
| <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference"> |
| <header class="bg-body border-bottom"> |
| <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation"> |
| <div class="container-xxl flex-nowrap"> |
| <a class="navbar-brand" href="../index.html"> |
| <img id="logo" class="svg" src="../images/logo.svg" alt="Selenium .NET API"> |
| Selenium .NET API |
| </a> |
| <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation"> |
| <i class="bi bi-three-dots"></i> |
| </button> |
| <div class="collapse navbar-collapse" id="navpanel"> |
| <div id="navbar"> |
| <form class="search" role="search" id="search"> |
| <i class="bi bi-search"></i> |
| <input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search"> |
| </form> |
| </div> |
| </div> |
| </div> |
| </nav> |
| </header> |
| |
| <main class="container-xxl"> |
| <div class="toc-offcanvas"> |
| <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel"> |
| <div class="offcanvas-header"> |
| <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5> |
| <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button> |
| </div> |
| <div class="offcanvas-body"> |
| <nav class="toc" id="toc"></nav> |
| </div> |
| </div> |
| </div> |
| |
| <div class="content"> |
| <div class="actionbar"> |
| <button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents"> |
| <i class="bi bi-list"></i> |
| </button> |
| |
| <nav id="breadcrumb"></nav> |
| </div> |
| |
| <article data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings"> |
| |
| |
| |
| <h1 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings" class="text-break"> |
| Class CallFunctionOnCommandSettings <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L13"><i class="bi bi-code-slash"></i></a> |
| </h1> |
| |
| <div class="facts text-secondary"> |
| <dl><dt>Namespace</dt><dd><a class="xref" href="OpenQA.html">OpenQA</a>.<a class="xref" href="OpenQA.Selenium.html">Selenium</a>.<a class="xref" href="OpenQA.Selenium.DevTools.html">DevTools</a>.<a class="xref" href="OpenQA.Selenium.DevTools.V146.html">V146</a>.<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.html">Runtime</a></dd></dl> |
| <dl><dt>Assembly</dt><dd>Selenium.WebDriver.dll</dd></dl> |
| </div> |
| |
| <div class="markdown summary"><p>Calls function with given declaration on the given object. Object group of the result is |
| inherited from the target object.</p> |
| </div> |
| <div class="markdown conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public sealed class CallFunctionOnCommandSettings : ICommand</code></pre> |
| </div> |
| |
| |
| |
| |
| <dl class="typelist inheritance"> |
| <dt>Inheritance</dt> |
| <dd> |
| <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div> |
| <div><span class="xref">CallFunctionOnCommandSettings</span></div> |
| </dd> |
| </dl> |
| |
| <dl class="typelist implements"> |
| <dt>Implements</dt> |
| <dd> |
| <div><a class="xref" href="OpenQA.Selenium.DevTools.ICommand.html">ICommand</a></div> |
| </dd> |
| </dl> |
| |
| |
| <dl class="typelist inheritedMembers"> |
| <dt>Inherited Members</dt> |
| <dd> |
| <div> |
| <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a> |
| </div> |
| <div> |
| <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a> |
| </div> |
| <div> |
| <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a> |
| </div> |
| <div> |
| <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a> |
| </div> |
| <div> |
| <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a> |
| </div> |
| <div> |
| <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a> |
| </div> |
| </dd></dl> |
| |
| |
| |
| |
| |
| |
| <h2 class="section" id="properties">Properties |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_Arguments_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.Arguments*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_Arguments" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.Arguments"> |
| Arguments |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L42"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Call arguments. All call arguments must belong to the same JavaScript world as the target |
| object.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("arguments")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public CallArgument[]? Arguments { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.CallArgument.html">CallArgument</a>[]</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_AwaitPromise_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.AwaitPromise*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_AwaitPromise" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.AwaitPromise"> |
| AwaitPromise |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L80"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Whether execution should <code>await</code> for resulting value and return once awaited promise is |
| resolved.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("awaitPromise")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public bool? AwaitPromise { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_CommandName_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.CommandName*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_CommandName" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.CommandName"> |
| CommandName |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L20"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets the name of the command.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonIgnore] |
| public string CommandName { get; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ExecutionContextId_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ExecutionContextId*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ExecutionContextId" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ExecutionContextId"> |
| ExecutionContextId |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L88"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Specifies execution context which global object will be used to call function on. Either |
| executionContextId or objectId should be specified.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("executionContextId")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public long? ExecutionContextId { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_FunctionDeclaration_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.FunctionDeclaration*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_FunctionDeclaration" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.FunctionDeclaration"> |
| FunctionDeclaration |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L26"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Declaration of the function to call.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("functionDeclaration")] |
| public string FunctionDeclaration { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_GeneratePreview_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.GeneratePreview*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_GeneratePreview" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.GeneratePreview"> |
| GeneratePreview |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L65"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Whether preview should be generated for the result.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("generatePreview")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public bool? GeneratePreview { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ObjectGroup_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ObjectGroup*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ObjectGroup" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ObjectGroup"> |
| ObjectGroup |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L96"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Symbolic group name that can be used to release multiple objects. If objectGroup is not |
| specified and objectId is, objectGroup will be inherited from object.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("objectGroup")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public string? ObjectGroup { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ObjectId_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ObjectId*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ObjectId" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ObjectId"> |
| ObjectId |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L34"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Identifier of the object to call function on. Either objectId or executionContextId should |
| be specified.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("objectId")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public string? ObjectId { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ReturnByValue_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ReturnByValue*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ReturnByValue" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ReturnByValue"> |
| ReturnByValue |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L58"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Whether the result is expected to be a JSON object which should be sent by value. |
| Can be overriden by <code>serializationOptions</code>.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("returnByValue")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public bool? ReturnByValue { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_SerializationOptions_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.SerializationOptions*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_SerializationOptions" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.SerializationOptions"> |
| SerializationOptions |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L123"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Specifies the result serialization. If provided, overrides |
| <code>generatePreview</code> and <code>returnByValue</code>.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("serializationOptions")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public SerializationOptions? SerializationOptions { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SerializationOptions.html">SerializationOptions</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_Silent_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.Silent*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_Silent" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.Silent"> |
| Silent |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L50"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>In silent mode exceptions thrown during evaluation are not reported and do not pause |
| execution. Overrides <code>setPauseOnException</code> state.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("silent")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public bool? Silent { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ThrowOnSideEffect_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ThrowOnSideEffect*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_ThrowOnSideEffect" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.ThrowOnSideEffect"> |
| ThrowOnSideEffect |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L103"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Whether to throw an exception if side effect cannot be ruled out during evaluation.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("throwOnSideEffect")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public bool? ThrowOnSideEffect { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_UniqueContextId_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.UniqueContextId*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_UniqueContextId" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.UniqueContextId"> |
| UniqueContextId |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L115"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>An alternative way to specify the execution context to call function on. |
| Compared to contextId that may be reused across processes, this is guaranteed to be |
| system-unique, so it can be used to prevent accidental function call |
| in context different than intended (e.g. as a result of navigation across process |
| boundaries). |
| This is mutually exclusive with <code>executionContextId</code>.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("uniqueContextId")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public string? UniqueContextId { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_UserGesture_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.UserGesture*"></a> |
| |
| <h3 id="OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_UserGesture" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.UserGesture"> |
| UserGesture |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L72"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Whether execution should be treated as initiated by user in the UI.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">[JsonPropertyName("userGesture")] |
| [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] |
| public bool? UserGesture { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>?</dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| </article> |
| |
| <div class="contribution d-print-none"> |
| <a href="https://github.com/SeleniumHQ/selenium/blob/docfix/bazel-bin/dotnet/src/webdriver/DevTools/v146/Runtime/CallFunctionOnCommand.cs/#L13" class="edit-link">Edit this page</a> |
| </div> |
| |
| |
| </div> |
| |
| <div class="affix"> |
| <nav id="affix"></nav> |
| </div> |
| </main> |
| |
| <div class="container-xxl search-results" id="search-results"></div> |
| |
| <footer class="border-top text-secondary"> |
| <div class="container-xxl"> |
| <div class="flex-fill"> |
| <span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span> |
| </div> |
| </div> |
| </footer> |
| </body> |
| </html> |