| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>Class ChromiumOptions </title> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <meta name="title" content="Class ChromiumOptions "> |
| |
| <meta name="description" content="Abstract class to manage options specific to Chromium-based browsers."> |
| <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/trunk/apiSpec/new?filename=OpenQA_Selenium_Chromium_ChromiumOptions.md&value=---%0Auid%3A%20OpenQA.Selenium.Chromium.ChromiumOptions%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.Chromium.ChromiumOptions"> |
| |
| |
| |
| <h1 id="OpenQA_Selenium_Chromium_ChromiumOptions" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions" class="text-break"> |
| Class ChromiumOptions <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L30"><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.Chromium.html">Chromium</a></dd></dl> |
| <dl><dt>Assembly</dt><dd>WebDriver.dll</dd></dl> |
| </div> |
| |
| <div class="markdown summary"><p>Abstract class to manage options specific to Chromium-based browsers.</p> |
| </div> |
| <div class="markdown conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public abstract class ChromiumOptions : DriverOptions</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><a class="xref" href="OpenQA.Selenium.DriverOptions.html">DriverOptions</a></div> |
| <div><span class="xref">ChromiumOptions</span></div> |
| </dd> |
| </dl> |
| |
| |
| <dl class="typelist derived"> |
| <dt>Derived</dt> |
| <dd> |
| <div><a class="xref" href="OpenQA.Selenium.Chrome.ChromeOptions.html">ChromeOptions</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.Edge.EdgeOptions.html">EdgeOptions</a></div> |
| </dd> |
| </dl> |
| |
| <dl class="typelist inheritedMembers"> |
| <dt>Inherited Members</dt> |
| <dd> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_BrowserName">DriverOptions.BrowserName</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_BrowserVersion">DriverOptions.BrowserVersion</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_PlatformName">DriverOptions.PlatformName</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_AcceptInsecureCertificates">DriverOptions.AcceptInsecureCertificates</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_UseWebSocketUrl">DriverOptions.UseWebSocketUrl</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_UnhandledPromptBehavior">DriverOptions.UnhandledPromptBehavior</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_PageLoadStrategy">DriverOptions.PageLoadStrategy</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_Proxy">DriverOptions.Proxy</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_UseStrictFileInteractability">DriverOptions.UseStrictFileInteractability</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_EnableDownloads">DriverOptions.EnableDownloads</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_ScriptTimeout">DriverOptions.ScriptTimeout</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_PageLoadTimeout">DriverOptions.PageLoadTimeout</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_ImplicitWaitTimeout">DriverOptions.ImplicitWaitTimeout</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_AddAdditionalOption_System_String_System_Object_">DriverOptions.AddAdditionalOption(string, object)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_GetMergeResult_OpenQA_Selenium_DriverOptions_">DriverOptions.GetMergeResult(DriverOptions)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_SetLoggingPreference_System_String_OpenQA_Selenium_LogLevel_">DriverOptions.SetLoggingPreference(string, LogLevel)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_ValidateCapabilityName_System_String_">DriverOptions.ValidateCapabilityName(string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_AddKnownCapabilityName_System_String_System_String_">DriverOptions.AddKnownCapabilityName(string, string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_RemoveKnownCapabilityName_System_String_">DriverOptions.RemoveKnownCapabilityName(string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_IsKnownCapabilityName_System_String_">DriverOptions.IsKnownCapabilityName(string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_TryGetKnownCapability_System_String_System_String__">DriverOptions.TryGetKnownCapability(string, out string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_GetTypeSafeOptionName_System_String_">DriverOptions.GetTypeSafeOptionName(string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_GenerateLoggingPreferencesDictionary">DriverOptions.GenerateLoggingPreferencesDictionary()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.DriverOptions.html#OpenQA_Selenium_DriverOptions_GenerateDesiredCapabilities_System_Boolean_">DriverOptions.GenerateDesiredCapabilities(bool)</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.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> |
| <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.tostring">object.ToString()</a> |
| </div> |
| </dd></dl> |
| |
| |
| |
| |
| |
| |
| <h2 class="section" id="constructors">Constructors |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions__ctor_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions__ctor" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.#ctor"> |
| ChromiumOptions() |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L61"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="OpenQA.Selenium.Chromium.ChromiumOptions.html">ChromiumOptions</a> class.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ChromiumOptions()</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h2 class="section" id="properties">Properties |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AndroidOptions_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AndroidOptions*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AndroidOptions" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AndroidOptions"> |
| AndroidOptions |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L148"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets or sets the options for automating Chromium applications on Android.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ChromiumAndroidOptions? AndroidOptions { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.Chromium.ChromiumAndroidOptions.html">ChromiumAndroidOptions</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_Arguments_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.Arguments*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_Arguments" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.Arguments"> |
| Arguments |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L108"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets the list of arguments appended to the Chromium command line as a string array.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<string> Arguments { 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.collections.objectmodel.readonlycollection-1">ReadOnlyCollection</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_BinaryLocation_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.BinaryLocation*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_BinaryLocation" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.BinaryLocation"> |
| BinaryLocation |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L97"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets or sets the location of the Chromium browser's binary executable file.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public override string? BinaryLocation { 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_Chromium_ChromiumOptions_CapabilityName_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.CapabilityName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_CapabilityName" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.CapabilityName"> |
| CapabilityName |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L92"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets the name of the capability used to store Chromium options in |
| an <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a> object.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public abstract string CapabilityName { 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_Chromium_ChromiumOptions_DebuggerAddress_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.DebuggerAddress*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_DebuggerAddress" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.DebuggerAddress"> |
| DebuggerAddress |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L133"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets or sets the address of a Chromium debugger server to connect to. |
| Should be of the form "{hostname|IP address}:port".</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public string? DebuggerAddress { 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_Chromium_ChromiumOptions_Extensions_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.Extensions*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_Extensions" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.Extensions"> |
| Extensions |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L113"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets the list of extensions to be installed as an array of base64-encoded strings.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<string> Extensions { 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.collections.objectmodel.readonlycollection-1">ReadOnlyCollection</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_LeaveBrowserRunning_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.LeaveBrowserRunning*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_LeaveBrowserRunning" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.LeaveBrowserRunning"> |
| LeaveBrowserRunning |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L103"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets or sets a value indicating whether Chromium should be left running after the |
| ChromeDriver instance is exited. Defaults to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public bool LeaveBrowserRunning { 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_Chromium_ChromiumOptions_MinidumpPath_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.MinidumpPath*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_MinidumpPath" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.MinidumpPath"> |
| MinidumpPath |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L138"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets or sets the directory in which to store minidump files.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public string? MinidumpPath { 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_Chromium_ChromiumOptions_PerformanceLoggingPreferences_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.PerformanceLoggingPreferences*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_PerformanceLoggingPreferences" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.PerformanceLoggingPreferences"> |
| PerformanceLoggingPreferences |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L143"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets or sets the performance logging preferences for the driver.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ChromiumPerformanceLoggingPreferences? PerformanceLoggingPreferences { get; set; }</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| <h4 class="section">Property Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.Chromium.ChromiumPerformanceLoggingPreferences.html">ChromiumPerformanceLoggingPreferences</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_VendorPrefix_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.VendorPrefix*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_VendorPrefix" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.VendorPrefix"> |
| VendorPrefix |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L84"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets the vendor prefix to apply to Chromium-specific capability names.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">protected abstract string VendorPrefix { 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> |
| |
| |
| |
| |
| |
| |
| |
| |
| <h2 class="section" id="methods">Methods |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddAdditionalChromiumOption_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddAdditionalChromiumOption*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddAdditionalChromiumOption_System_String_System_Object_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddAdditionalChromiumOption(System.String,System.Object)"> |
| AddAdditionalChromiumOption(string, object) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L480"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Provides a means to add additional capabilities not yet added as type safe options |
| for the Chromium driver.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">protected void AddAdditionalChromiumOption(string optionName, object optionValue)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>optionName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The name of the capability to add.</p> |
| </dd> |
| <dt><code>optionValue</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt> |
| <dd><p>The value of the capability to add.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Chromium_ChromiumOptions_AddAdditionalChromiumOption_System_String_System_Object__remarks">Remarks</h4> |
| <div class="markdown level1 remarks"><p>Calling <a class="xref" href="OpenQA.Selenium.Chromium.ChromiumOptions.html#OpenQA_Selenium_Chromium_ChromiumOptions_AddAdditionalChromiumOption_System_String_System_Object_">AddAdditionalChromiumOption(string, object)</a> |
| where <code class="paramref">optionName</code> has already been added will overwrite the |
| existing value with the new value in <code class="paramref">optionValue</code>. |
| Calling this method adds capabilities to the Chromium-specific options object passed to |
| webdriver executable (e.g. property name 'goog:chromeOptions').</p> |
| </div> |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>thrown when attempting to add a capability for which there is already a type safe option, or |
| when <code class="paramref">optionName</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or the empty string.</p> |
| </dd> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>thrown when attempting to add a capability for which there is already a type safe option, or |
| when <code class="paramref">optionName</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or the empty string.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddArgument_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddArgument*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddArgument_System_String_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddArgument(System.String)"> |
| AddArgument(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L155"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a single argument to the list of arguments to be appended to the browser executable command line.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddArgument(string argument)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>argument</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The argument to add.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>If <code class="paramref">argument</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddArguments_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddArguments*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddArguments_System_Collections_Generic_IEnumerable_System_String__" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddArguments(System.Collections.Generic.IEnumerable{System.String})"> |
| AddArguments(IEnumerable<string>) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L180"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds arguments to be appended to the browser executable command line.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddArguments(IEnumerable<string> argumentsToAdd)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>argumentsToAdd</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable<T></a> object of arguments to add.</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">argumentsToAdd</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddArguments_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddArguments*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddArguments_System_String___" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddArguments(System.String[])"> |
| AddArguments(params string[]) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L170"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds arguments to be appended to the browser executable command line.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddArguments(params string[] argumentsToAdd)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>argumentsToAdd</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</dt> |
| <dd><p>An array of arguments to add.</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">argumentsToAdd</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddEncodedExtension_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddEncodedExtension*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddEncodedExtension_System_String_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddEncodedExtension(System.String)"> |
| AddEncodedExtension(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L293"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a base64-encoded string representing a Chrome extension to the list of extensions |
| to be installed in the instance of Chrome.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddEncodedExtension(string extension)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>extension</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>A base64-encoded string representing the extension to add.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>If <code class="paramref">extension</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>.</p> |
| </dd> |
| <dt><a class="xref" href="OpenQA.Selenium.WebDriverException.html">WebDriverException</a></dt> |
| <dd><p>If the extension string is not valid base-64.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddEncodedExtensions_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddEncodedExtensions*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddEncodedExtensions_System_Collections_Generic_IEnumerable_System_String__" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddEncodedExtensions(System.Collections.Generic.IEnumerable{System.String})"> |
| AddEncodedExtensions(IEnumerable<string>) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L323"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a list of base64-encoded strings representing Chrome extensions to be installed |
| in the instance of Chrome.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddEncodedExtensions(IEnumerable<string> extensions)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>extensions</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable<T></a> of base64-encoded strings |
| representing the extensions to add.</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">extensions</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| <dt><a class="xref" href="OpenQA.Selenium.WebDriverException.html">WebDriverException</a></dt> |
| <dd><p>If an extension string is not valid base-64.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddEncodedExtensions_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddEncodedExtensions*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddEncodedExtensions_System_String___" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddEncodedExtensions(System.String[])"> |
| AddEncodedExtensions(params string[]) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L310"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a list of base64-encoded strings representing Chrome extensions to the list of extensions |
| to be installed in the instance of Chrome.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddEncodedExtensions(params string[] extensions)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>extensions</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</dt> |
| <dd><p>An array of base64-encoded strings representing the extensions to add.</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">extensions</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| <dt><a class="xref" href="OpenQA.Selenium.WebDriverException.html">WebDriverException</a></dt> |
| <dd><p>If an extension string is not valid base-64.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExcludedArgument_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExcludedArgument*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExcludedArgument_System_String_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExcludedArgument(System.String)"> |
| AddExcludedArgument(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L196"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a single argument to be excluded from the list of arguments passed by default |
| to the browser executable command line by chromedriver.exe.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddExcludedArgument(string argument)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>argument</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The argument to exclude.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>If <code class="paramref">argument</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExcludedArguments_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExcludedArguments*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExcludedArguments_System_Collections_Generic_IEnumerable_System_String__" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExcludedArguments(System.Collections.Generic.IEnumerable{System.String})"> |
| AddExcludedArguments(IEnumerable<string>) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L223"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds arguments to be excluded from the list of arguments passed by default |
| to the browser executable command line by chromedriver.exe.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddExcludedArguments(IEnumerable<string> argumentsToExclude)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>argumentsToExclude</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable<T></a> object of arguments to exclude.</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">argumentsToExclude</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExcludedArguments_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExcludedArguments*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExcludedArguments_System_String___" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExcludedArguments(System.String[])"> |
| AddExcludedArguments(params string[]) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L212"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds arguments to be excluded from the list of arguments passed by default |
| to the browser executable command line by chromedriver.exe.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddExcludedArguments(params string[] argumentsToExclude)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>argumentsToExclude</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</dt> |
| <dd><p>An array of arguments to exclude.</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">argumentsToExclude</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExtension_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExtension*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExtension_System_String_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExtension(System.String)"> |
| AddExtension(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L239"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a path to a packed Chrome extension (.crx file) to the list of extensions |
| to be installed in the instance of Chrome.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddExtension(string pathToExtension)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>pathToExtension</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The full path to the extension to add.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>If <code class="paramref">pathToExtension</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExtensions_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExtensions*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExtensions_System_Collections_Generic_IEnumerable_System_String__" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExtensions(System.Collections.Generic.IEnumerable{System.String})"> |
| AddExtensions(IEnumerable<string>) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L268"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a list of paths to packed Chrome extensions (.crx files) to be installed |
| in the instance of Chrome.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddExtensions(IEnumerable<string> extensions)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>extensions</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable<T></a> of full paths to the extensions to add.</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">extensions</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.filenotfoundexception">FileNotFoundException</a></dt> |
| <dd><p>If any extension file path does not point to a file.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExtensions_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExtensions*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddExtensions_System_String___" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddExtensions(System.String[])"> |
| AddExtensions(params string[]) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L256"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a list of paths to packed Chrome extensions (.crx files) to be installed |
| in the instance of Chrome.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddExtensions(params string[] extensions)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>extensions</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</dt> |
| <dd><p>An array of full paths to the extensions to add.</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">extensions</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.filenotfoundexception">FileNotFoundException</a></dt> |
| <dd><p>If any extension file path does not point to a file.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddLocalStatePreference_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddLocalStatePreference*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddLocalStatePreference_System_String_System_Object_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddLocalStatePreference(System.String,System.Object)"> |
| AddLocalStatePreference(string, object) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L371"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a preference for the local state file in the user's data directory for Chromium. |
| If the specified preference already exists, it will be overwritten.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddLocalStatePreference(string preferenceName, object preferenceValue)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>preferenceName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The name of the preference to set.</p> |
| </dd> |
| <dt><code>preferenceValue</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt> |
| <dd><p>The value of the preference to set.</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">preferenceName</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddUserProfilePreference_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddUserProfilePreference*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddUserProfilePreference_System_String_System_Object_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddUserProfilePreference(System.String,System.Object)"> |
| AddUserProfilePreference(string, object) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L354"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a preference for the user-specific profile or "user data directory." |
| If the specified preference already exists, it will be overwritten.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddUserProfilePreference(string preferenceName, object preferenceValue)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>preferenceName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The name of the preference to set.</p> |
| </dd> |
| <dt><code>preferenceValue</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt> |
| <dd><p>The value of the preference to set.</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">preferenceName</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddVendorSpecificChromiumCapabilities_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddVendorSpecificChromiumCapabilities*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddVendorSpecificChromiumCapabilities_OpenQA_Selenium_IWritableCapabilities_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddVendorSpecificChromiumCapabilities(OpenQA.Selenium.IWritableCapabilities)"> |
| AddVendorSpecificChromiumCapabilities(IWritableCapabilities) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L514"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds vendor-specific capabilities for Chromium-based browsers.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">protected virtual void AddVendorSpecificChromiumCapabilities(IWritableCapabilities capabilities)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>capabilities</code> <a class="xref" href="OpenQA.Selenium.IWritableCapabilities.html">IWritableCapabilities</a></dt> |
| <dd><p>The capabilities to add.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowType_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddWindowType*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowType_System_String_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddWindowType(System.String)"> |
| AddWindowType(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L424"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a type of window that will be listed in the list of window handles |
| returned by the Chrome driver.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddWindowType(string windowType)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>windowType</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The name of the window type to add.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowType_System_String__remarks">Remarks</h4> |
| <div class="markdown level1 remarks"><p>This method can be used to allow the driver to access {webview} |
| elements by adding "webview" as a window type.</p> |
| </div> |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>If <code class="paramref">windowType</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowTypes_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddWindowTypes*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowTypes_System_Collections_Generic_IEnumerable_System_String__" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddWindowTypes(System.Collections.Generic.IEnumerable{System.String})"> |
| AddWindowTypes(IEnumerable<string>) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L451"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a list of window types that will be listed in the list of window handles |
| returned by the Chromium driver.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddWindowTypes(IEnumerable<string> windowTypesToAdd)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>windowTypesToAdd</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable<T></a> of window types to add.</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">windowTypesToAdd</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowTypes_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddWindowTypes*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_AddWindowTypes_System_String___" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.AddWindowTypes(System.String[])"> |
| AddWindowTypes(params string[]) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L440"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Adds a list of window types that will be listed in the list of window handles |
| returned by the Chromium driver.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void AddWindowTypes(params string[] windowTypesToAdd)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>windowTypesToAdd</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</dt> |
| <dd><p>An array of window types to add.</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">windowTypesToAdd</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_EnableMobileEmulation_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.EnableMobileEmulation*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_EnableMobileEmulation_OpenQA_Selenium_Chromium_ChromiumMobileEmulationDeviceSettings_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.EnableMobileEmulation(OpenQA.Selenium.Chromium.ChromiumMobileEmulationDeviceSettings)"> |
| EnableMobileEmulation(ChromiumMobileEmulationDeviceSettings?) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L405"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Allows the Chromium browser to emulate a mobile device.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void EnableMobileEmulation(ChromiumMobileEmulationDeviceSettings? deviceSettings)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>deviceSettings</code> <a class="xref" href="OpenQA.Selenium.Chromium.ChromiumMobileEmulationDeviceSettings.html">ChromiumMobileEmulationDeviceSettings</a></dt> |
| <dd><p>The <a class="xref" href="OpenQA.Selenium.Chromium.ChromiumMobileEmulationDeviceSettings.html">ChromiumMobileEmulationDeviceSettings</a> |
| object containing the settings of the device to emulate.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Chromium_ChromiumOptions_EnableMobileEmulation_OpenQA_Selenium_Chromium_ChromiumMobileEmulationDeviceSettings__remarks">Remarks</h4> |
| <div class="markdown level1 remarks"><p>Specifying an invalid device name will not throw an exception, but |
| will generate an error in Chrome when the driver starts. To unset mobile |
| emulation, call this method with <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> as the argument.</p> |
| </div> |
| |
| <h4 class="section">Exceptions</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt> |
| <dd><p>Thrown if the device settings option does |
| not have a user agent string set.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_EnableMobileEmulation_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.EnableMobileEmulation*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_EnableMobileEmulation_System_String_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.EnableMobileEmulation(System.String)"> |
| EnableMobileEmulation(string?) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L389"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Allows the Chromium browser to emulate a mobile device.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void EnableMobileEmulation(string? deviceName)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>deviceName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The name of the device to emulate. The device name must be a |
| valid device name from the Chrome DevTools Emulation panel.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Chromium_ChromiumOptions_EnableMobileEmulation_System_String__remarks">Remarks</h4> |
| <div class="markdown level1 remarks"><p>Specifying an invalid device name will not throw an exception, but |
| will generate an error in Chrome when the driver starts. To unset mobile |
| emulation, call this method with <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> as the argument.</p> |
| </div> |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Chromium_ChromiumOptions_ToCapabilities_" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.ToCapabilities*"></a> |
| |
| <h3 id="OpenQA_Selenium_Chromium_ChromiumOptions_ToCapabilities" data-uid="OpenQA.Selenium.Chromium.ChromiumOptions.ToCapabilities"> |
| ToCapabilities() |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L492"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Returns DesiredCapabilities for Chromium with these options included as |
| capabilities. This does not copy the options. Further changes will be |
| reflected in the returned capabilities.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public override ICapabilities ToCapabilities()</code></pre> |
| </div> |
| |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a></dt> |
| <dd><p>The DesiredCapabilities for Chrome with these options.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| </article> |
| |
| <div class="contribution d-print-none"> |
| <a href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Chromium/ChromiumOptions.cs/#L30" 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> |