| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>Class RemoteWebDriver </title> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <meta name="title" content="Class RemoteWebDriver "> |
| |
| <meta name="description" content="Provides a way to use the driver through"> |
| <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_Remote_RemoteWebDriver.md&value=---%0Auid%3A%20OpenQA.Selenium.Remote.RemoteWebDriver%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.Remote.RemoteWebDriver"> |
| |
| |
| |
| <h1 id="OpenQA_Selenium_Remote_RemoteWebDriver" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver" class="text-break"> |
| Class RemoteWebDriver <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L66"><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.Remote.html">Remote</a></dd></dl> |
| <dl><dt>Assembly</dt><dd>WebDriver.dll</dd></dl> |
| </div> |
| |
| <div class="markdown summary"><p>Provides a way to use the driver through</p> |
| </div> |
| <div class="markdown conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public class RemoteWebDriver : WebDriver, IWebDriver, IDisposable, ISearchContext, IJavaScriptExecutor, IFindsElement, ITakesScreenshot, ISupportsPrint, IActionExecutor, IAllowsFileDetection, IHasCapabilities, IHasCommandExecutor, IHasSessionId, ICustomDriverCommandExecutor, IHasVirtualAuthenticator, IDevTools, IHasDownloads</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.WebDriver.html">WebDriver</a></div> |
| <div><span class="xref">RemoteWebDriver</span></div> |
| </dd> |
| </dl> |
| |
| <dl class="typelist implements"> |
| <dt>Implements</dt> |
| <dd> |
| <div><a class="xref" href="OpenQA.Selenium.IWebDriver.html">IWebDriver</a></div> |
| <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.ISearchContext.html">ISearchContext</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IJavaScriptExecutor.html">IJavaScriptExecutor</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.Internal.IFindsElement.html">IFindsElement</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.ITakesScreenshot.html">ITakesScreenshot</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.ISupportsPrint.html">ISupportsPrint</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IActionExecutor.html">IActionExecutor</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IAllowsFileDetection.html">IAllowsFileDetection</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IHasCapabilities.html">IHasCapabilities</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IHasCommandExecutor.html">IHasCommandExecutor</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IHasSessionId.html">IHasSessionId</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.ICustomDriverCommandExecutor.html">ICustomDriverCommandExecutor</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.VirtualAuth.IHasVirtualAuthenticator.html">IHasVirtualAuthenticator</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.DevTools.IDevTools.html">IDevTools</a></div> |
| <div><a class="xref" href="OpenQA.Selenium.IHasDownloads.html">IHasDownloads</a></div> |
| </dd> |
| </dl> |
| |
| |
| <dl class="typelist inheritedMembers"> |
| <dt>Inherited Members</dt> |
| <dd> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_DefaultCommandTimeout">WebDriver.DefaultCommandTimeout</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_CommandExecutor">WebDriver.CommandExecutor</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Capabilities">WebDriver.Capabilities</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Url">WebDriver.Url</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Title">WebDriver.Title</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_PageSource">WebDriver.PageSource</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_CurrentWindowHandle">WebDriver.CurrentWindowHandle</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_WindowHandles">WebDriver.WindowHandles</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_IsActionExecutor">WebDriver.IsActionExecutor</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_SessionId">WebDriver.SessionId</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_FileDetector">WebDriver.FileDetector</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ElementFactory">WebDriver.ElementFactory</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Close">WebDriver.Close()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Dispose">WebDriver.Dispose()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ExecuteAsyncScript_System_String_System_Object___">WebDriver.ExecuteAsyncScript(string, params object[])</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ExecuteScript_System_String_System_Object___">WebDriver.ExecuteScript(string, params object[])</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ExecuteScript_OpenQA_Selenium_PinnedScript_System_Object___">WebDriver.ExecuteScript(PinnedScript, params object[])</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_FindElement_OpenQA_Selenium_By_">WebDriver.FindElement(By)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_FindElement_System_String_System_String_">WebDriver.FindElement(string, string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_FindElements_OpenQA_Selenium_By_">WebDriver.FindElements(By)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_FindElements_System_String_System_String_">WebDriver.FindElements(string, string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_GetScreenshot">WebDriver.GetScreenshot()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Print_OpenQA_Selenium_PrintOptions_">WebDriver.Print(PrintOptions)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_PerformActions_System_Collections_Generic_IList_OpenQA_Selenium_Interactions_ActionSequence__">WebDriver.PerformActions(IList<ActionSequence>)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ResetInputState">WebDriver.ResetInputState()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Quit">WebDriver.Quit()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_SwitchTo">WebDriver.SwitchTo()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Manage">WebDriver.Manage()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Navigate">WebDriver.Navigate()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ExecuteCustomDriverCommand_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__">WebDriver.ExecuteCustomDriverCommand(string, Dictionary<string, object>)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RegisterCustomDriverCommands_System_Collections_Generic_IReadOnlyDictionary_System_String_OpenQA_Selenium_CommandInfo__">WebDriver.RegisterCustomDriverCommands(IReadOnlyDictionary<string, CommandInfo>)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RegisterCustomDriverCommand_System_String_OpenQA_Selenium_CommandInfo_">WebDriver.RegisterCustomDriverCommand(string, CommandInfo)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_Execute_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__">WebDriver.Execute(string, Dictionary<string, object>)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ExecuteAsync_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__">WebDriver.ExecuteAsync(string, Dictionary<string, object>)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_StartSession_OpenQA_Selenium_ICapabilities_">WebDriver.StartSession(ICapabilities)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_GetCapabilitiesDictionary_OpenQA_Selenium_ICapabilities_">WebDriver.GetCapabilitiesDictionary(ICapabilities)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RegisterInternalDriverCommand_System_String_OpenQA_Selenium_CommandInfo_">WebDriver.RegisterInternalDriverCommand(string, CommandInfo)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_ExecuteScriptCommand_System_String_System_String_System_Object___">WebDriver.ExecuteScriptCommand(string, string, params object[])</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_AddVirtualAuthenticator_OpenQA_Selenium_VirtualAuth_VirtualAuthenticatorOptions_">WebDriver.AddVirtualAuthenticator(VirtualAuthenticatorOptions)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RemoveVirtualAuthenticator_System_String_">WebDriver.RemoveVirtualAuthenticator(string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_AuthenticatorId">WebDriver.AuthenticatorId</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_AddCredential_OpenQA_Selenium_VirtualAuth_Credential_">WebDriver.AddCredential(Credential)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_GetCredentials">WebDriver.GetCredentials()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RemoveCredential_System_Byte___">WebDriver.RemoveCredential(byte[])</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RemoveCredential_System_String_">WebDriver.RemoveCredential(string)</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_RemoveAllCredentials">WebDriver.RemoveAllCredentials()</a> |
| </div> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.WebDriver.html#OpenQA_Selenium_WebDriver_SetUserVerified_System_Boolean_">WebDriver.SetUserVerified(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> |
| |
| <dl class="typelist extensionMethods"> |
| <dt>Extension Methods</dt> |
| <dd> |
| <div> |
| <a class="xref" href="OpenQA.Selenium.BiDi.WebDriverExtensions.html#OpenQA_Selenium_BiDi_WebDriverExtensions_AsBiDiAsync_OpenQA_Selenium_IWebDriver_OpenQA_Selenium_BiDi_BiDiOptions_">WebDriverExtensions.AsBiDiAsync(IWebDriver, BiDiOptions?)</a> |
| </div> |
| </dd></dl> |
| |
| |
| <h2 id="OpenQA_Selenium_Remote_RemoteWebDriver_examples">Examples</h2> |
| <pre><code class="lang-csharp">[TestFixture] |
| public class Testing |
| { |
| private IWebDriver driver; |
| |
| [SetUp] |
| public void SetUp() |
| { |
| driver = new RemoteWebDriver(new Uri("http://127.0.0.1:4444/wd/hub"),new FirefoxOptions()); |
| } |
| |
| [Test] |
| public void TestGoogle() |
| { |
| driver.Navigate().GoToUrl("http://www.google.co.uk"); |
| /* |
| * Rest of the test |
| */ |
| } |
| |
| [TearDown] |
| public void TearDown() |
| { |
| driver.Quit(); |
| } |
| }</code></pre> |
| |
| |
| |
| |
| <h2 class="section" id="constructors">Constructors |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_OpenQA_Selenium_DriverOptions_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor(OpenQA.Selenium.DriverOptions)"> |
| RemoteWebDriver(DriverOptions) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L88"><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.Remote.RemoteWebDriver.html">RemoteWebDriver</a> class. This constructor defaults proxy to <a href="http://127.0.0.1:4444/wd/hub">http://127.0.0.1:4444/wd/hub</a></p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public RemoteWebDriver(DriverOptions options)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>options</code> <a class="xref" href="OpenQA.Selenium.DriverOptions.html">DriverOptions</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.DriverOptions.html">DriverOptions</a> object containing the desired capabilities of the browser.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_OpenQA_Selenium_ICapabilities_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor(OpenQA.Selenium.ICapabilities)"> |
| RemoteWebDriver(ICapabilities) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L97"><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.Remote.RemoteWebDriver.html">RemoteWebDriver</a> class. This constructor defaults proxy to <a href="http://127.0.0.1:4444/wd/hub">http://127.0.0.1:4444/wd/hub</a></p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public RemoteWebDriver(ICapabilities capabilities)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>capabilities</code> <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a> object containing the desired capabilities of the browser.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_OpenQA_Selenium_ICommandExecutor_OpenQA_Selenium_ICapabilities_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor(OpenQA.Selenium.ICommandExecutor,OpenQA.Selenium.ICapabilities)"> |
| RemoteWebDriver(ICommandExecutor, ICapabilities) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L138"><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.Remote.RemoteWebDriver.html">RemoteWebDriver</a> class</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public RemoteWebDriver(ICommandExecutor commandExecutor, ICapabilities capabilities)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>commandExecutor</code> <a class="xref" href="OpenQA.Selenium.ICommandExecutor.html">ICommandExecutor</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.ICommandExecutor.html">ICommandExecutor</a> object which executes commands for the driver.</p> |
| </dd> |
| <dt><code>capabilities</code> <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a> object containing the desired capabilities of the browser.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_System_Uri_OpenQA_Selenium_DriverOptions_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor(System.Uri,OpenQA.Selenium.DriverOptions)"> |
| RemoteWebDriver(Uri, DriverOptions) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L107"><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.Remote.RemoteWebDriver.html">RemoteWebDriver</a> class. This constructor defaults proxy to <a href="http://127.0.0.1:4444/wd/hub">http://127.0.0.1:4444/wd/hub</a></p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public RemoteWebDriver(Uri remoteAddress, DriverOptions options)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>remoteAddress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uri">Uri</a></dt> |
| <dd><p>URI containing the address of the WebDriver remote server (e.g. <a href="http://127.0.0.1:4444/wd/hub">http://127.0.0.1:4444/wd/hub</a>).</p> |
| </dd> |
| <dt><code>options</code> <a class="xref" href="OpenQA.Selenium.DriverOptions.html">DriverOptions</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.DriverOptions.html">DriverOptions</a> object containing the desired capabilities of the browser.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_System_Uri_OpenQA_Selenium_ICapabilities_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor(System.Uri,OpenQA.Selenium.ICapabilities)"> |
| RemoteWebDriver(Uri, ICapabilities) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L117"><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.Remote.RemoteWebDriver.html">RemoteWebDriver</a> class</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public RemoteWebDriver(Uri remoteAddress, ICapabilities capabilities)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>remoteAddress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uri">Uri</a></dt> |
| <dd><p>URI containing the address of the WebDriver remote server (e.g. <a href="http://127.0.0.1:4444/wd/hub">http://127.0.0.1:4444/wd/hub</a>).</p> |
| </dd> |
| <dt><code>capabilities</code> <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a> object containing the desired capabilities of the browser.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver__ctor_System_Uri_OpenQA_Selenium_ICapabilities_System_TimeSpan_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.#ctor(System.Uri,OpenQA.Selenium.ICapabilities,System.TimeSpan)"> |
| RemoteWebDriver(Uri, ICapabilities, TimeSpan) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L128"><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.Remote.RemoteWebDriver.html">RemoteWebDriver</a> class using the specified remote address, desired capabilities, and command timeout.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public RemoteWebDriver(Uri remoteAddress, ICapabilities capabilities, TimeSpan commandTimeout)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>remoteAddress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uri">Uri</a></dt> |
| <dd><p>URI containing the address of the WebDriver remote server (e.g. <a href="http://127.0.0.1:4444/wd/hub">http://127.0.0.1:4444/wd/hub</a>).</p> |
| </dd> |
| <dt><code>capabilities</code> <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a></dt> |
| <dd><p>An <a class="xref" href="OpenQA.Selenium.ICapabilities.html">ICapabilities</a> object containing the desired capabilities of the browser.</p> |
| </dd> |
| <dt><code>commandTimeout</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></dt> |
| <dd><p>The maximum amount of time to wait for each command.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h2 class="section" id="fields">Fields |
| </h2> |
| |
| |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_RemoteDevToolsEndPointCapabilityName" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.RemoteDevToolsEndPointCapabilityName"> |
| RemoteDevToolsEndPointCapabilityName |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L73"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>The name of the Selenium grid remote DevTools end point capability.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public readonly string RemoteDevToolsEndPointCapabilityName</code></pre> |
| </div> |
| |
| |
| |
| |
| <h4 class="section">Field Value</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_RemoteDevToolsVersionCapabilityName" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.RemoteDevToolsVersionCapabilityName"> |
| RemoteDevToolsVersionCapabilityName |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L78"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>The name of the Selenium remote DevTools version capability.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public readonly string RemoteDevToolsVersionCapabilityName</code></pre> |
| </div> |
| |
| |
| |
| |
| <h4 class="section">Field 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="properties">Properties |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_HasActiveDevToolsSession_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.HasActiveDevToolsSession*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_HasActiveDevToolsSession" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.HasActiveDevToolsSession"> |
| HasActiveDevToolsSession |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L146"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Gets a value indicating whether a DevTools session is active.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public bool HasActiveDevToolsSession { 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.boolean">bool</a></dt> |
| <dd></dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| <h2 class="section" id="methods">Methods |
| </h2> |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_CloseDevToolsSession_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.CloseDevToolsSession*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_CloseDevToolsSession" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.CloseDevToolsSession"> |
| CloseDevToolsSession() |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L583"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Closes a DevTools session.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void CloseDevToolsSession()</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_DeleteDownloadableFiles_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.DeleteDownloadableFiles*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_DeleteDownloadableFiles" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.DeleteDownloadableFiles"> |
| DeleteDownloadableFiles() |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L569"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Deletes all downloadable files.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void DeleteDownloadableFiles()</code></pre> |
| </div> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_Dispose_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.Dispose*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_Dispose_System_Boolean_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.Dispose(System.Boolean)"> |
| Dispose(bool) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L597"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Releases all resources associated with this <a class="xref" href="OpenQA.Selenium.Remote.RemoteWebDriver.html">RemoteWebDriver</a>.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">protected override void Dispose(bool disposing)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>disposing</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt> |
| <dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the Dispose method was explicitly called; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_DownloadFile_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.DownloadFile*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_DownloadFile_System_String_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.DownloadFile(System.String,System.String)"> |
| DownloadFile(string, string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L528"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Downloads a file with the specified file name.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public void DownloadFile(string fileName, string targetDirectory)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>fileName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The name of the file to be downloaded.</p> |
| </dd> |
| <dt><code>targetDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The target directory where the file should be downloaded to.</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">targetDirectory</code> is null.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByClassName_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByClassName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByClassName_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByClassName(System.String)"> |
| FindElementByClassName(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L202"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first element in the page that matches the CSS Class supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByClassName(string className)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>className</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>className of the</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByClassName_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| IWebElement elem = driver.FindElementByClassName("classname")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByCssSelector_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByCssSelector*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByCssSelector_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByCssSelector(System.String)"> |
| FindElementByCssSelector(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L408"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first element matching the specified CSS selector.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByCssSelector(string cssSelector)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>cssSelector</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The CSS selector to match.</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>The first <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a> matching the criteria.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementById_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementById*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementById_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementById(System.String)"> |
| FindElementById(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L160"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first element in the page that matches the ID supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementById(string id)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>id</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>ID of the element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact with that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementById_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| IWebElement elem = driver.FindElementById("id")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByLinkText_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByLinkText*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByLinkText_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByLinkText(System.String)"> |
| FindElementByLinkText(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L254"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first of elements that match the link text supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByLinkText(string linkText)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>linkText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>Link text of element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByLinkText_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| IWebElement elem = driver.FindElementsByLinkText("linktext")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByName_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByName_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByName(System.String)"> |
| FindElementByName(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L318"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first of elements that match the name supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByName(string name)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>name</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>Name of the element on the page</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByName_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| elem = driver.FindElementsByName("name")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByPartialLinkText_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByPartialLinkText*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByPartialLinkText_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByPartialLinkText(System.String)"> |
| FindElementByPartialLinkText(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L286"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first of elements that match the part of the link text supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByPartialLinkText(string partialLinkText)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>partialLinkText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>part of the link text</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByPartialLinkText_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| IWebElement elem = driver.FindElementsByPartialLinkText("partOfLink")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByTagName_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByTagName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByTagName_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByTagName(System.String)"> |
| FindElementByTagName(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L350"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first of elements that match the DOM Tag supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByTagName(string tagName)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>tagName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>DOM tag Name of the element being searched</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByTagName_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| IWebElement elem = driver.FindElementsByTagName("tag")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByXPath_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByXPath_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementByXPath(System.String)"> |
| FindElementByXPath(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L382"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first of elements that match the XPath supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IWebElement FindElementByXPath(string xpath)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>xpath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>xpath to the element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementByXPath_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| IWebElement elem = driver.FindElementsByXPath("//table/tbody/tr/td/a");</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByClassName_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByClassName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByClassName_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByClassName(System.String)"> |
| FindElementsByClassName(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L228"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds a list of elements that match the class name supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByClassName(string className)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>className</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>CSS class Name on the element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>ReadOnlyCollection of IWebElement object so that you can interact with those objects</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByClassName_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsByClassName("classname")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByCssSelector_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByCssSelector*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByCssSelector_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByCssSelector(System.String)"> |
| FindElementsByCssSelector(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L419"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds all elements matching the specified CSS selector.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByCssSelector(string cssSelector)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>cssSelector</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>The CSS selector to match.</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.readonlycollection-1">ReadOnlyCollection<T></a> containing all |
| <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElements</a> matching the criteria.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsById_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsById*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsById_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsById(System.String)"> |
| FindElementsById(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L176"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds the first element in the page that matches the ID supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsById(string id)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>id</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>ID of the Element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>ReadOnlyCollection of Elements that match the object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsById_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsById("id")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByLinkText_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByLinkText*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByLinkText_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByLinkText(System.String)"> |
| FindElementsByLinkText(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L270"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds a list of elements that match the link text supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByLinkText(string linkText)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>linkText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>Link text of element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>ReadOnlyCollection<IWebElement> object so that you can interact with those objects</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByLinkText_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsByClassName("classname")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByName_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByName_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByName(System.String)"> |
| FindElementsByName(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L334"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds a list of elements that match the name supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByName(string name)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>name</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>Name of element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>ReadOnlyCollect of IWebElement objects so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByName_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsByName("name")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByPartialLinkText_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByPartialLinkText*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByPartialLinkText_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByPartialLinkText(System.String)"> |
| FindElementsByPartialLinkText(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L302"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds a list of elements that match the class name supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByPartialLinkText(string partialLinkText)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>partialLinkText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>part of the link text</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>ReadOnlyCollection<IWebElement> objects so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByPartialLinkText_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsByPartialLinkText("partOfTheLink")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByTagName_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByTagName*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByTagName_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByTagName(System.String)"> |
| FindElementsByTagName(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L366"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds a list of elements that match the DOM Tag supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByTagName(string tagName)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>tagName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>DOM tag Name of element being searched</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>IWebElement object so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByTagName_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsByTagName("tag")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByXPath_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByXPath*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByXPath_System_String_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.FindElementsByXPath(System.String)"> |
| FindElementsByXPath(string) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L398"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Finds a list of elements that match the XPath supplied</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElementsByXPath(string xpath)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>xpath</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt> |
| <dd><p>xpath to the element</p> |
| </dd> |
| </dl> |
| |
| <h4 class="section">Returns</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="OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt> |
| <dd><p>ReadOnlyCollection of IWebElement objects so that you can interact that object</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| <h4 class="section" id="OpenQA_Selenium_Remote_RemoteWebDriver_FindElementsByXPath_System_String__examples">Examples</h4> |
| <pre><code class="lang-csharp">IWebDriver driver = new RemoteWebDriver(new FirefoxOptions()); |
| ReadOnlyCollection<IWebElement> elem = driver.FindElementsByXpath("//tr/td/a")</code></pre> |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_GetDevToolsSession_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.GetDevToolsSession*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_GetDevToolsSession" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.GetDevToolsSession"> |
| GetDevToolsSession() |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L428"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Creates a session to communicate with a browser using a Developer Tools debugging protocol.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public DevToolsSession GetDevToolsSession()</code></pre> |
| </div> |
| |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.DevTools.DevToolsSession.html">DevToolsSession</a></dt> |
| <dd><p>The active session to use to communicate with the Developer Tools debugging protocol.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_GetDevToolsSession_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.GetDevToolsSession*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_GetDevToolsSession_OpenQA_Selenium_DevTools_DevToolsOptions_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.GetDevToolsSession(OpenQA.Selenium.DevTools.DevToolsOptions)"> |
| GetDevToolsSession(DevToolsOptions) |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L447"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Creates a session to communicate with a browser using a Developer Tools debugging protocol.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public DevToolsSession GetDevToolsSession(DevToolsOptions options)</code></pre> |
| </div> |
| |
| <h4 class="section">Parameters</h4> |
| <dl class="parameters"> |
| <dt><code>options</code> <a class="xref" href="OpenQA.Selenium.DevTools.DevToolsOptions.html">DevToolsOptions</a></dt> |
| <dd></dd> |
| </dl> |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="OpenQA.Selenium.DevTools.DevToolsSession.html">DevToolsSession</a></dt> |
| <dd><p>The active session to use to communicate with the Developer Tools debugging protocol.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a id="OpenQA_Selenium_Remote_RemoteWebDriver_GetDownloadableFiles_" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.GetDownloadableFiles*"></a> |
| |
| <h3 id="OpenQA_Selenium_Remote_RemoteWebDriver_GetDownloadableFiles" data-uid="OpenQA.Selenium.Remote.RemoteWebDriver.GetDownloadableFiles"> |
| GetDownloadableFiles() |
| <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L503"><i class="bi bi-code-slash"></i></a> |
| </h3> |
| |
| <div class="markdown level1 summary"><p>Retrieves the downloadable files.</p> |
| </div> |
| <div class="markdown level1 conceptual"></div> |
| |
| <div class="codewrapper"> |
| <pre><code class="lang-csharp hljs">public IReadOnlyList<string> GetDownloadableFiles()</code></pre> |
| </div> |
| |
| |
| <h4 class="section">Returns</h4> |
| <dl class="parameters"> |
| <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt> |
| <dd><p>A read-only list of file names available for download.</p> |
| </dd> |
| </dl> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| </article> |
| |
| <div class="contribution d-print-none"> |
| <a href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Remote/RemoteWebDriver.cs/#L66" 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> |