blob: d86d712f0dcf6acf584f24e5dee233a7fd2a2d8a [file] [edit]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class RuntimeAdapter </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class RuntimeAdapter ">
<meta name="description" content="Represents an adapter for the Runtime domain to simplify the command interface.">
<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_RuntimeAdapter.md&amp;value=---%0Auid%3A%20OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%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 &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<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.RuntimeAdapter">
<h1 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter" class="text-break">
Class RuntimeAdapter <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/RuntimeAdapter.cs/#L16"><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>Represents an adapter for the Runtime domain to simplify the command interface.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class RuntimeAdapter</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">RuntimeAdapter</span></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>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
</div>
</dd></dl>
<h2 class="section" id="constructors">Constructors
</h2>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter__ctor_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.#ctor*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter__ctor_OpenQA_Selenium_DevTools_IDevToolsSession_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.#ctor(OpenQA.Selenium.DevTools.IDevToolsSession)">
RuntimeAdapter(IDevToolsSession)
<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/RuntimeAdapter.cs/#L26"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Initializes a new instance of the RuntimeAdapter class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public RuntimeAdapter(IDevToolsSession session)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>session</code> <a class="xref" href="OpenQA.Selenium.DevTools.IDevToolsSession.html">IDevToolsSession</a></dt>
<dd><p>The IDevToolsSession to be used with this adapter.</p>
</dd>
</dl>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
<dd><p>If <code class="paramref">session</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Session_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Session*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Session" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Session">
Session
<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/RuntimeAdapter.cs/#L43"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the DevToolsSession associated with the adapter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IDevToolsSession Session { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.DevTools.IDevToolsSession.html">IDevToolsSession</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_AddBinding_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.AddBinding*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_AddBinding_OpenQA_Selenium_DevTools_V146_Runtime_AddBindingCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.AddBinding(OpenQA.Selenium.DevTools.V146.Runtime.AddBindingCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
AddBinding(AddBindingCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L262"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>If executionContextId is empty, adds binding with the given name on the
global objects of all inspected contexts, including those created later,
bindings survive reloads.
Binding function takes exactly one argument, this argument should be string,
in case of any other input, function throws an exception.
Each binding function call produces Runtime.bindingCalled notification.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;AddBindingCommandResponse?&gt; AddBinding(AddBindingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.AddBindingCommandSettings.html">AddBindingCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.AddBindingCommandResponse.html">AddBindingCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_AwaitPromise_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.AwaitPromise*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_AwaitPromise_OpenQA_Selenium_DevTools_V146_Runtime_AwaitPromiseCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.AwaitPromise(OpenQA.Selenium.DevTools.V146.Runtime.AwaitPromiseCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
AwaitPromise(AwaitPromiseCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L91"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Add handler to promise with given promise object id.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;AwaitPromiseCommandResponse&gt; AwaitPromise(AwaitPromiseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.AwaitPromiseCommandSettings.html">AwaitPromiseCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.AwaitPromiseCommandResponse.html">AwaitPromiseCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_CallFunctionOn_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.CallFunctionOn*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_CallFunctionOn_OpenQA_Selenium_DevTools_V146_Runtime_CallFunctionOnCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.CallFunctionOn(OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
CallFunctionOn(CallFunctionOnCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L100"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 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 level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;CallFunctionOnCommandResponse&gt; CallFunctionOn(CallFunctionOnCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandSettings.html">CallFunctionOnCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.CallFunctionOnCommandResponse.html">CallFunctionOnCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_CompileScript_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.CompileScript*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_CompileScript_OpenQA_Selenium_DevTools_V146_Runtime_CompileScriptCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.CompileScript(OpenQA.Selenium.DevTools.V146.Runtime.CompileScriptCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
CompileScript(CompileScriptCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L108"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Compiles expression.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;CompileScriptCommandResponse&gt; CompileScript(CompileScriptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.CompileScriptCommandSettings.html">CompileScriptCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.CompileScriptCommandResponse.html">CompileScriptCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Disable_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Disable*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Disable_OpenQA_Selenium_DevTools_V146_Runtime_DisableCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Disable(OpenQA.Selenium.DevTools.V146.Runtime.DisableCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L116"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Disables reporting of execution contexts creation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;DisableCommandResponse?&gt; Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.DisableCommandSettings.html">DisableCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.DisableCommandResponse.html">DisableCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_DiscardConsoleEntries_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.DiscardConsoleEntries*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_DiscardConsoleEntries_OpenQA_Selenium_DevTools_V146_Runtime_DiscardConsoleEntriesCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.DiscardConsoleEntries(OpenQA.Selenium.DevTools.V146.Runtime.DiscardConsoleEntriesCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
DiscardConsoleEntries(DiscardConsoleEntriesCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L124"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Discards collected exceptions and console API calls.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;DiscardConsoleEntriesCommandResponse?&gt; DiscardConsoleEntries(DiscardConsoleEntriesCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.DiscardConsoleEntriesCommandSettings.html">DiscardConsoleEntriesCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.DiscardConsoleEntriesCommandResponse.html">DiscardConsoleEntriesCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Enable_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Enable*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Enable_OpenQA_Selenium_DevTools_V146_Runtime_EnableCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Enable(OpenQA.Selenium.DevTools.V146.Runtime.EnableCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L134"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event.
When the reporting gets enabled the event will be sent immediately for each existing execution
context.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;EnableCommandResponse?&gt; Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.EnableCommandSettings.html">EnableCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.EnableCommandResponse.html">EnableCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Evaluate_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Evaluate*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_Evaluate_OpenQA_Selenium_DevTools_V146_Runtime_EvaluateCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.Evaluate(OpenQA.Selenium.DevTools.V146.Runtime.EvaluateCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
Evaluate(EvaluateCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L142"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Evaluates expression on global object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;EvaluateCommandResponse&gt; Evaluate(EvaluateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.EvaluateCommandSettings.html">EvaluateCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.EvaluateCommandResponse.html">EvaluateCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetExceptionDetails_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetExceptionDetails*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetExceptionDetails_OpenQA_Selenium_DevTools_V146_Runtime_GetExceptionDetailsCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetExceptionDetails(OpenQA.Selenium.DevTools.V146.Runtime.GetExceptionDetailsCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
GetExceptionDetails(GetExceptionDetailsCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L283"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>This method tries to lookup and populate exception details for a
JavaScript Error object.
Note that the stackTrace portion of the resulting exceptionDetails will
only be populated if the Runtime domain was enabled at the time when the
Error was thrown.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;GetExceptionDetailsCommandResponse&gt; GetExceptionDetails(GetExceptionDetailsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetExceptionDetailsCommandSettings.html">GetExceptionDetailsCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetExceptionDetailsCommandResponse.html">GetExceptionDetailsCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetHeapUsage_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetHeapUsage*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetHeapUsage_OpenQA_Selenium_DevTools_V146_Runtime_GetHeapUsageCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetHeapUsage(OpenQA.Selenium.DevTools.V146.Runtime.GetHeapUsageCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
GetHeapUsage(GetHeapUsageCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L159"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Returns the JavaScript heap usage.
It is the total usage of the corresponding isolate not scoped to a particular Runtime.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;GetHeapUsageCommandResponse&gt; GetHeapUsage(GetHeapUsageCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetHeapUsageCommandSettings.html">GetHeapUsageCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetHeapUsageCommandResponse.html">GetHeapUsageCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetIsolateId_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetIsolateId*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetIsolateId_OpenQA_Selenium_DevTools_V146_Runtime_GetIsolateIdCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetIsolateId(OpenQA.Selenium.DevTools.V146.Runtime.GetIsolateIdCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
GetIsolateId(GetIsolateIdCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L150"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Returns the isolate id.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;GetIsolateIdCommandResponse&gt; GetIsolateId(GetIsolateIdCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetIsolateIdCommandSettings.html">GetIsolateIdCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetIsolateIdCommandResponse.html">GetIsolateIdCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetProperties_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetProperties*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GetProperties_OpenQA_Selenium_DevTools_V146_Runtime_GetPropertiesCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GetProperties(OpenQA.Selenium.DevTools.V146.Runtime.GetPropertiesCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
GetProperties(GetPropertiesCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L168"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Returns properties of a given object. Object group of the result is inherited from the target
object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;GetPropertiesCommandResponse&gt; GetProperties(GetPropertiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetPropertiesCommandSettings.html">GetPropertiesCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GetPropertiesCommandResponse.html">GetPropertiesCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GlobalLexicalScopeNames_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GlobalLexicalScopeNames*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_GlobalLexicalScopeNames_OpenQA_Selenium_DevTools_V146_Runtime_GlobalLexicalScopeNamesCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.GlobalLexicalScopeNames(OpenQA.Selenium.DevTools.V146.Runtime.GlobalLexicalScopeNamesCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
GlobalLexicalScopeNames(GlobalLexicalScopeNamesCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L176"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Returns all let, const and class variables from global scope.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;GlobalLexicalScopeNamesCommandResponse&gt; GlobalLexicalScopeNames(GlobalLexicalScopeNamesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GlobalLexicalScopeNamesCommandSettings.html">GlobalLexicalScopeNamesCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.GlobalLexicalScopeNamesCommandResponse.html">GlobalLexicalScopeNamesCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_QueryObjects_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.QueryObjects*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_QueryObjects_OpenQA_Selenium_DevTools_V146_Runtime_QueryObjectsCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.QueryObjects(OpenQA.Selenium.DevTools.V146.Runtime.QueryObjectsCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
QueryObjects(QueryObjectsCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L184"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>queryObjects</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;QueryObjectsCommandResponse&gt; QueryObjects(QueryObjectsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.QueryObjectsCommandSettings.html">QueryObjectsCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.QueryObjectsCommandResponse.html">QueryObjectsCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ReleaseObject_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ReleaseObject*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ReleaseObject_OpenQA_Selenium_DevTools_V146_Runtime_ReleaseObjectCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ReleaseObject(OpenQA.Selenium.DevTools.V146.Runtime.ReleaseObjectCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
ReleaseObject(ReleaseObjectCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L192"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Releases remote object with given id.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;ReleaseObjectCommandResponse?&gt; ReleaseObject(ReleaseObjectCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ReleaseObjectCommandSettings.html">ReleaseObjectCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ReleaseObjectCommandResponse.html">ReleaseObjectCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ReleaseObjectGroup_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ReleaseObjectGroup*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ReleaseObjectGroup_OpenQA_Selenium_DevTools_V146_Runtime_ReleaseObjectGroupCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ReleaseObjectGroup(OpenQA.Selenium.DevTools.V146.Runtime.ReleaseObjectGroupCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
ReleaseObjectGroup(ReleaseObjectGroupCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L200"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Releases all remote objects that belong to a given group.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;ReleaseObjectGroupCommandResponse?&gt; ReleaseObjectGroup(ReleaseObjectGroupCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ReleaseObjectGroupCommandSettings.html">ReleaseObjectGroupCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ReleaseObjectGroupCommandResponse.html">ReleaseObjectGroupCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_RemoveBinding_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.RemoveBinding*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_RemoveBinding_OpenQA_Selenium_DevTools_V146_Runtime_RemoveBindingCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.RemoveBinding(OpenQA.Selenium.DevTools.V146.Runtime.RemoveBindingCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
RemoveBinding(RemoveBindingCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L271"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>This method does not remove binding function from global object but
unsubscribes current runtime agent from Runtime.bindingCalled notifications.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;RemoveBindingCommandResponse?&gt; RemoveBinding(RemoveBindingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.RemoveBindingCommandSettings.html">RemoveBindingCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.RemoveBindingCommandResponse.html">RemoveBindingCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_RunIfWaitingForDebugger_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.RunIfWaitingForDebugger*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_RunIfWaitingForDebugger_OpenQA_Selenium_DevTools_V146_Runtime_RunIfWaitingForDebuggerCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.RunIfWaitingForDebugger(OpenQA.Selenium.DevTools.V146.Runtime.RunIfWaitingForDebuggerCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
RunIfWaitingForDebugger(RunIfWaitingForDebuggerCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L208"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Tells inspected instance to run if it was waiting for debugger to attach.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;RunIfWaitingForDebuggerCommandResponse?&gt; RunIfWaitingForDebugger(RunIfWaitingForDebuggerCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.RunIfWaitingForDebuggerCommandSettings.html">RunIfWaitingForDebuggerCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.RunIfWaitingForDebuggerCommandResponse.html">RunIfWaitingForDebuggerCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_RunScript_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.RunScript*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_RunScript_OpenQA_Selenium_DevTools_V146_Runtime_RunScriptCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.RunScript(OpenQA.Selenium.DevTools.V146.Runtime.RunScriptCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
RunScript(RunScriptCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L216"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Runs script with given id in a given context.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;RunScriptCommandResponse&gt; RunScript(RunScriptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.RunScriptCommandSettings.html">RunScriptCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.RunScriptCommandResponse.html">RunScriptCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_SetAsyncCallStackDepth_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.SetAsyncCallStackDepth*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_SetAsyncCallStackDepth_OpenQA_Selenium_DevTools_V146_Runtime_SetAsyncCallStackDepthCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.SetAsyncCallStackDepth(OpenQA.Selenium.DevTools.V146.Runtime.SetAsyncCallStackDepthCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
SetAsyncCallStackDepth(SetAsyncCallStackDepthCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L224"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Enables or disables async call stacks tracking.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;SetAsyncCallStackDepthCommandResponse?&gt; SetAsyncCallStackDepth(SetAsyncCallStackDepthCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SetAsyncCallStackDepthCommandSettings.html">SetAsyncCallStackDepthCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SetAsyncCallStackDepthCommandResponse.html">SetAsyncCallStackDepthCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_SetCustomObjectFormatterEnabled_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.SetCustomObjectFormatterEnabled*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_SetCustomObjectFormatterEnabled_OpenQA_Selenium_DevTools_V146_Runtime_SetCustomObjectFormatterEnabledCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.SetCustomObjectFormatterEnabled(OpenQA.Selenium.DevTools.V146.Runtime.SetCustomObjectFormatterEnabledCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
SetCustomObjectFormatterEnabled(SetCustomObjectFormatterEnabledCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L232"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>setCustomObjectFormatterEnabled</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;SetCustomObjectFormatterEnabledCommandResponse?&gt; SetCustomObjectFormatterEnabled(SetCustomObjectFormatterEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SetCustomObjectFormatterEnabledCommandSettings.html">SetCustomObjectFormatterEnabledCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SetCustomObjectFormatterEnabledCommandResponse.html">SetCustomObjectFormatterEnabledCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_SetMaxCallStackSizeToCapture_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.SetMaxCallStackSizeToCapture*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_SetMaxCallStackSizeToCapture_OpenQA_Selenium_DevTools_V146_Runtime_SetMaxCallStackSizeToCaptureCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.SetMaxCallStackSizeToCapture(OpenQA.Selenium.DevTools.V146.Runtime.SetMaxCallStackSizeToCaptureCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
SetMaxCallStackSizeToCapture(SetMaxCallStackSizeToCaptureCommandSettings, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L240"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>setMaxCallStackSizeToCapture</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;SetMaxCallStackSizeToCaptureCommandResponse?&gt; SetMaxCallStackSizeToCapture(SetMaxCallStackSizeToCaptureCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SetMaxCallStackSizeToCaptureCommandSettings.html">SetMaxCallStackSizeToCaptureCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.SetMaxCallStackSizeToCaptureCommandResponse.html">SetMaxCallStackSizeToCaptureCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_TerminateExecution_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.TerminateExecution*"></a>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_TerminateExecution_OpenQA_Selenium_DevTools_V146_Runtime_TerminateExecutionCommandSettings_System_Threading_CancellationToken_System_Nullable_System_Int32__System_Boolean_" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.TerminateExecution(OpenQA.Selenium.DevTools.V146.Runtime.TerminateExecutionCommandSettings,System.Threading.CancellationToken,System.Nullable{System.Int32},System.Boolean)">
TerminateExecution(TerminateExecutionCommandSettings?, CancellationToken, int?, bool)
<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/RuntimeAdapter.cs/#L249"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Terminate current or next JavaScript execution.
Will cancel the termination when the outer-most script execution ends.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Task&lt;TerminateExecutionCommandResponse?&gt; TerminateExecution(TerminateExecutionCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>command</code> <a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.TerminateExecutionCommandSettings.html">TerminateExecutionCommandSettings</a></dt>
<dd></dd>
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></dt>
<dd></dd>
<dt><code>millisecondsTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
<dt><code>throwExceptionIfResponseNotReceived</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.TerminateExecutionCommandResponse.html">TerminateExecutionCommandResponse</a>&gt;</dt>
<dd></dd>
</dl>
<h2 class="section" id="events">Events
</h2>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_BindingCalled" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.BindingCalled">
BindingCalled
<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/RuntimeAdapter.cs/#L48"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Notification is issued every time when binding is called.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;BindingCalledEventArgs&gt;? BindingCalled</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.BindingCalledEventArgs.html">BindingCalledEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ConsoleAPICalled" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ConsoleAPICalled">
ConsoleAPICalled
<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/RuntimeAdapter.cs/#L53"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when console API was called.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;ConsoleAPICalledEventArgs&gt;? ConsoleAPICalled</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ConsoleAPICalledEventArgs.html">ConsoleAPICalledEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ExceptionRevoked" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ExceptionRevoked">
ExceptionRevoked
<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/RuntimeAdapter.cs/#L58"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when unhandled exception was revoked.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;ExceptionRevokedEventArgs&gt;? ExceptionRevoked</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ExceptionRevokedEventArgs.html">ExceptionRevokedEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ExceptionThrown" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ExceptionThrown">
ExceptionThrown
<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/RuntimeAdapter.cs/#L63"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when exception was thrown and unhandled.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;ExceptionThrownEventArgs&gt;? ExceptionThrown</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ExceptionThrownEventArgs.html">ExceptionThrownEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ExecutionContextCreated" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ExecutionContextCreated">
ExecutionContextCreated
<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/RuntimeAdapter.cs/#L68"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when new execution context is created.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;ExecutionContextCreatedEventArgs&gt;? ExecutionContextCreated</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ExecutionContextCreatedEventArgs.html">ExecutionContextCreatedEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ExecutionContextDestroyed" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ExecutionContextDestroyed">
ExecutionContextDestroyed
<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/RuntimeAdapter.cs/#L73"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when execution context is destroyed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;ExecutionContextDestroyedEventArgs&gt;? ExecutionContextDestroyed</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ExecutionContextDestroyedEventArgs.html">ExecutionContextDestroyedEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_ExecutionContextsCleared" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.ExecutionContextsCleared">
ExecutionContextsCleared
<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/RuntimeAdapter.cs/#L78"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when all executionContexts were cleared in browser</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;ExecutionContextsClearedEventArgs&gt;? ExecutionContextsCleared</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.ExecutionContextsClearedEventArgs.html">ExecutionContextsClearedEventArgs</a>&gt;</dt>
<dd></dd>
</dl>
<h3 id="OpenQA_Selenium_DevTools_V146_Runtime_RuntimeAdapter_InspectRequested" data-uid="OpenQA.Selenium.DevTools.V146.Runtime.RuntimeAdapter.InspectRequested">
InspectRequested
<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/RuntimeAdapter.cs/#L84"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Issued when object should be inspected (for example, as a result of inspect() command line API
call).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public event EventHandler&lt;InspectRequestedEventArgs&gt;? InspectRequested</code></pre>
</div>
<h4 class="section">Event Type</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="OpenQA.Selenium.DevTools.V146.Runtime.InspectRequestedEventArgs.html">InspectRequestedEventArgs</a>&gt;</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/RuntimeAdapter.cs/#L16" 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>