blob: 15e998802d0003f0956330792b039ca86fc388fb [file] [log] [blame] [edit]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class Actions </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class Actions ">
<meta name="description" content="Provides a mechanism for building advanced interactions with the browser.">
<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_Interactions_Actions.md&amp;value=---%0Auid%3A%20OpenQA.Selenium.Interactions.Actions%0Asummary%3A%20&#39;*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax&#39;%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../images/logo.svg" alt="Selenium .NET API">
Selenium .NET API
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="OpenQA.Selenium.Interactions.Actions">
<h1 id="OpenQA_Selenium_Interactions_Actions" data-uid="OpenQA.Selenium.Interactions.Actions" class="text-break">
Class Actions <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L29"><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.Interactions.html">Interactions</a></dd></dl>
<dl><dt>Assembly</dt><dd>WebDriver.dll</dd></dl>
</div>
<div class="markdown summary"><p>Provides a mechanism for building advanced interactions with the browser.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class Actions : IAction</code></pre>
</div>
<dl class="typelist inheritance">
<dt>Inheritance</dt>
<dd>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
<div><span class="xref">Actions</span></div>
</dd>
</dl>
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="OpenQA.Selenium.Interactions.IAction.html">IAction</a></div>
</dd>
</dl>
<dl class="typelist inheritedMembers">
<dt>Inherited Members</dt>
<dd>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.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_Interactions_Actions__ctor_" data-uid="OpenQA.Selenium.Interactions.Actions.#ctor*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions__ctor_OpenQA_Selenium_IWebDriver_" data-uid="OpenQA.Selenium.Interactions.Actions.#ctor(OpenQA.Selenium.IWebDriver)">
Actions(IWebDriver)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L42"><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.Interactions.Actions.html">Actions</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions(IWebDriver driver)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>driver</code> <a class="xref" href="OpenQA.Selenium.IWebDriver.html">IWebDriver</a></dt>
<dd><p>The <a class="xref" href="OpenQA.Selenium.IWebDriver.html">IWebDriver</a> object on which the actions built will be performed.</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">driver</code> does not implement <a class="xref" href="OpenQA.Selenium.IActionExecutor.html">IActionExecutor</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions__ctor_" data-uid="OpenQA.Selenium.Interactions.Actions.#ctor*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions__ctor_OpenQA_Selenium_IWebDriver_System_TimeSpan_" data-uid="OpenQA.Selenium.Interactions.Actions.#ctor(OpenQA.Selenium.IWebDriver,System.TimeSpan)">
Actions(IWebDriver, TimeSpan)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L53"><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.Interactions.Actions.html">Actions</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions(IWebDriver driver, TimeSpan duration)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>driver</code> <a class="xref" href="OpenQA.Selenium.IWebDriver.html">IWebDriver</a></dt>
<dd><p>The <a class="xref" href="OpenQA.Selenium.IWebDriver.html">IWebDriver</a> object on which the actions built will be performed.</p>
</dd>
<dt><code>duration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></dt>
<dd><p>How long durable action is expected to take.</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">driver</code> does not implement <a class="xref" href="OpenQA.Selenium.IActionExecutor.html">IActionExecutor</a>.</p>
</dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
<a id="OpenQA_Selenium_Interactions_Actions_ActionExecutor_" data-uid="OpenQA.Selenium.Interactions.Actions.ActionExecutor*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ActionExecutor" data-uid="OpenQA.Selenium.Interactions.Actions.ActionExecutor">
ActionExecutor
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L65"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Returns the <a class="xref" href="OpenQA.Selenium.IActionExecutor.html">IActionExecutor</a> for the driver.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected IActionExecutor ActionExecutor { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.IActionExecutor.html">IActionExecutor</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="OpenQA_Selenium_Interactions_Actions_Build_" data-uid="OpenQA.Selenium.Interactions.Actions.Build*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Build" data-uid="OpenQA.Selenium.Interactions.Actions.Build">
Build()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L598"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Builds the sequence of actions.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IAction Build()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.IAction.html">IAction</a></dt>
<dd><p>A composite <a class="xref" href="OpenQA.Selenium.Interactions.IAction.html">IAction</a> which can be used to perform the actions.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_Click_" data-uid="OpenQA.Selenium.Interactions.Actions.Click*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Click" data-uid="OpenQA.Selenium.Interactions.Actions.Click">
Click()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L379"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Clicks the mouse at the last known mouse coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions Click()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_Click_" data-uid="OpenQA.Selenium.Interactions.Actions.Click*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Click_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.Click(OpenQA.Selenium.IWebElement)">
Click(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L369"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Clicks the mouse on the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions Click(IWebElement onElement)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>onElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which to click.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">onElement</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_ClickAndHold_" data-uid="OpenQA.Selenium.Interactions.Actions.ClickAndHold*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ClickAndHold" data-uid="OpenQA.Selenium.Interactions.Actions.ClickAndHold">
ClickAndHold()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L335"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Clicks and holds the mouse button at the last known mouse coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ClickAndHold()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_ClickAndHold_" data-uid="OpenQA.Selenium.Interactions.Actions.ClickAndHold*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ClickAndHold_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.ClickAndHold(OpenQA.Selenium.IWebElement)">
ClickAndHold(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L325"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Clicks and holds the mouse button down on the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ClickAndHold(IWebElement onElement)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>onElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which to click and hold.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">onElement</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_ContextClick_" data-uid="OpenQA.Selenium.Interactions.Actions.ContextClick*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ContextClick" data-uid="OpenQA.Selenium.Interactions.Actions.ContextClick">
ContextClick()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L481"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Right-clicks the mouse at the last known mouse coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ContextClick()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_ContextClick_" data-uid="OpenQA.Selenium.Interactions.Actions.ContextClick*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ContextClick_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.ContextClick(OpenQA.Selenium.IWebElement)">
ContextClick(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L471"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Right-clicks the mouse on the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ContextClick(IWebElement onElement)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>onElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which to right-click.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">onElement</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_DoubleClick_" data-uid="OpenQA.Selenium.Interactions.Actions.DoubleClick*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_DoubleClick" data-uid="OpenQA.Selenium.Interactions.Actions.DoubleClick">
DoubleClick()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L402"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Double-clicks the mouse at the last known mouse coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions DoubleClick()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_DoubleClick_" data-uid="OpenQA.Selenium.Interactions.Actions.DoubleClick*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_DoubleClick_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.DoubleClick(OpenQA.Selenium.IWebElement)">
DoubleClick(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L392"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Double-clicks the mouse on the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions DoubleClick(IWebElement onElement)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>onElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which to double-click.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">onElement</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_DragAndDrop_" data-uid="OpenQA.Selenium.Interactions.Actions.DragAndDrop*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_DragAndDrop_OpenQA_Selenium_IWebElement_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.DragAndDrop(OpenQA.Selenium.IWebElement,OpenQA.Selenium.IWebElement)">
DragAndDrop(IWebElement, IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L495"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Performs a drag-and-drop operation from one element to another.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions DragAndDrop(IWebElement source, IWebElement target)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>source</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which the drag operation is started.</p>
</dd>
<dt><code>target</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which the drop is performed.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">source</code> or <code class="paramref">target</code> are null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_DragAndDropToOffset_" data-uid="OpenQA.Selenium.Interactions.Actions.DragAndDropToOffset*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_DragAndDropToOffset_OpenQA_Selenium_IWebElement_System_Int32_System_Int32_" data-uid="OpenQA.Selenium.Interactions.Actions.DragAndDropToOffset(OpenQA.Selenium.IWebElement,System.Int32,System.Int32)">
DragAndDropToOffset(IWebElement, int, int)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L509"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Performs a drag-and-drop operation on one element to a specified offset.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions DragAndDropToOffset(IWebElement source, int offsetX, int offsetY)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>source</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which the drag operation is started.</p>
</dd>
<dt><code>offsetX</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The horizontal offset to which to move the mouse.</p>
</dd>
<dt><code>offsetY</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The vertical offset to which to move the mouse.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">source</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_GetActiveKeyboard_" data-uid="OpenQA.Selenium.Interactions.Actions.GetActiveKeyboard*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_GetActiveKeyboard" data-uid="OpenQA.Selenium.Interactions.Actions.GetActiveKeyboard">
GetActiveKeyboard()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L166"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the active keyboard device for this Actions class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public KeyInputDevice GetActiveKeyboard()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.KeyInputDevice.html">KeyInputDevice</a></dt>
<dd><p>The active keyboard device for this Actions class.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_GetActivePointer_" data-uid="OpenQA.Selenium.Interactions.Actions.GetActivePointer*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_GetActivePointer" data-uid="OpenQA.Selenium.Interactions.Actions.GetActivePointer">
GetActivePointer()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L152"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the active pointer device for this Actions class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public PointerInputDevice GetActivePointer()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.PointerInputDevice.html">PointerInputDevice</a></dt>
<dd><p>The active pointer device for this Actions class.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_GetActiveWheel_" data-uid="OpenQA.Selenium.Interactions.Actions.GetActiveWheel*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_GetActiveWheel" data-uid="OpenQA.Selenium.Interactions.Actions.GetActiveWheel">
GetActiveWheel()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L180"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the active wheel device for this Actions class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public WheelInputDevice GetActiveWheel()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.WheelInputDevice.html">WheelInputDevice</a></dt>
<dd><p>The active wheel device for this Actions class.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_GetLocatableFromElement_" data-uid="OpenQA.Selenium.Interactions.Actions.GetLocatableFromElement*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_GetLocatableFromElement_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.GetLocatableFromElement(OpenQA.Selenium.IWebElement)">
GetLocatableFromElement(IWebElement?)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L625"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="OpenQA.Selenium.ILocatable.html">ILocatable</a> instance of the specified <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected static ILocatable? GetLocatableFromElement(IWebElement? element)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>element</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a> to get the location of.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.ILocatable.html">ILocatable</a></dt>
<dd><p>The <a class="xref" href="OpenQA.Selenium.ILocatable.html">ILocatable</a> of the <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_KeyDown_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyDown*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_KeyDown_OpenQA_Selenium_IWebElement_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyDown(OpenQA.Selenium.IWebElement,System.String)">
KeyDown(IWebElement?, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L214"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sends a modifier key down message to the specified element in the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions KeyDown(IWebElement? element, string theKey)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>element</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element to which to send the key command.</p>
</dd>
<dt><code>theKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The key to be sent.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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 the key sent is not is not one
of <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Shift">Shift</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Control">Control</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Alt">Alt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Meta">Meta</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Command">Command</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftAlt">LeftAlt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftControl">LeftControl</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftShift">LeftShift</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_KeyDown_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyDown*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_KeyDown_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyDown(System.String)">
KeyDown(string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L199"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sends a modifier key down message to the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions KeyDown(string theKey)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>theKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The key to be sent.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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 the key sent is not is not one
of <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Shift">Shift</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Control">Control</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Alt">Alt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Meta">Meta</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Command">Command</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftAlt">LeftAlt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftControl">LeftControl</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftShift">LeftShift</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_KeyUp_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyUp*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_KeyUp_OpenQA_Selenium_IWebElement_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyUp(OpenQA.Selenium.IWebElement,System.String)">
KeyUp(IWebElement?, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L258"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sends a modifier up down message to the specified element in the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions KeyUp(IWebElement? element, string theKey)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>element</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element to which to send the key command.</p>
</dd>
<dt><code>theKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The key to be sent.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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 the key sent is not is not one
of <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Shift">Shift</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Control">Control</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Alt">Alt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Meta">Meta</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Command">Command</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftAlt">LeftAlt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftControl">LeftControl</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftShift">LeftShift</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_KeyUp_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyUp*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_KeyUp_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.KeyUp(System.String)">
KeyUp(string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L243"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sends a modifier key up message to the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions KeyUp(string theKey)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>theKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The key to be sent.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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 the key sent is not is not one
of <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Shift">Shift</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Control">Control</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Alt">Alt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Meta">Meta</a>, <a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_Command">Command</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftAlt">LeftAlt</a>,
<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftControl">LeftControl</a>,<a class="xref" href="OpenQA.Selenium.Keys.html#OpenQA_Selenium_Keys_LeftShift">LeftShift</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_MoveByOffset_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveByOffset*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_MoveByOffset_System_Int32_System_Int32_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveByOffset(System.Int32,System.Int32)">
MoveByOffset(int, int)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L447"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Moves the mouse to the specified offset of the last known mouse coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions MoveByOffset(int offsetX, int offsetY)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>offsetX</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The horizontal offset to which to move the mouse.</p>
</dd>
<dt><code>offsetY</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The vertical offset to which to move the mouse.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_MoveToElement_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveToElement*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_MoveToElement_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveToElement(OpenQA.Selenium.IWebElement)">
MoveToElement(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L417"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Moves the mouse to the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions MoveToElement(IWebElement toElement)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>toElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element to which to move the mouse.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">toElement</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_MoveToElement_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveToElement*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_MoveToElement_OpenQA_Selenium_IWebElement_System_Int32_System_Int32_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveToElement(OpenQA.Selenium.IWebElement,System.Int32,System.Int32)">
MoveToElement(IWebElement, int, int)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L435"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Moves the mouse to the specified offset of the top-left corner of the specified element.
In Selenium 4.3 the origin for the offset will be the in-view center point of the element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions MoveToElement(IWebElement toElement, int offsetX, int offsetY)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>toElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element to which to move the mouse.</p>
</dd>
<dt><code>offsetX</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The horizontal offset to which to move the mouse.</p>
</dd>
<dt><code>offsetY</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The vertical offset to which to move the mouse.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_MoveToLocation_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveToLocation*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_MoveToLocation_System_Int32_System_Int32_" data-uid="OpenQA.Selenium.Interactions.Actions.MoveToLocation(System.Int32,System.Int32)">
MoveToLocation(int, int)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L459"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Moves the mouse from the upper left corner of the current viewport by the provided offset.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions MoveToLocation(int offsetX, int offsetY)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>offsetX</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The horizontal offset to which to move the mouse.</p>
</dd>
<dt><code>offsetY</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The vertical offset to which to move the mouse.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_Pause_" data-uid="OpenQA.Selenium.Interactions.Actions.Pause*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Pause_System_TimeSpan_" data-uid="OpenQA.Selenium.Interactions.Actions.Pause(System.TimeSpan)">
Pause(TimeSpan)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L588"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Performs a Pause.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions Pause(TimeSpan duration)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>duration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></dt>
<dd><p>How long to pause the action chain.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">duration</code> is negative.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_Perform_" data-uid="OpenQA.Selenium.Interactions.Actions.Perform*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Perform" data-uid="OpenQA.Selenium.Interactions.Actions.Perform">
Perform()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L606"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Performs the currently built action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Perform()</code></pre>
</div>
<a id="OpenQA_Selenium_Interactions_Actions_Release_" data-uid="OpenQA.Selenium.Interactions.Actions.Release*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Release" data-uid="OpenQA.Selenium.Interactions.Actions.Release">
Release()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L357"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Releases the mouse button at the last known mouse coordinates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions Release()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_Release_" data-uid="OpenQA.Selenium.Interactions.Actions.Release*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Release_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.Release(OpenQA.Selenium.IWebElement)">
Release(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L347"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Releases the mouse button on the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions Release(IWebElement onElement)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>onElement</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element on which to release the button.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">onElement</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_Reset_" data-uid="OpenQA.Selenium.Interactions.Actions.Reset*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_Reset" data-uid="OpenQA.Selenium.Interactions.Actions.Reset">
Reset()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L615"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Clears the list of actions to be performed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Reset()</code></pre>
</div>
<a id="OpenQA_Selenium_Interactions_Actions_ScrollByAmount_" data-uid="OpenQA.Selenium.Interactions.Actions.ScrollByAmount*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ScrollByAmount_System_Int32_System_Int32_" data-uid="OpenQA.Selenium.Interactions.Actions.ScrollByAmount(System.Int32,System.Int32)">
ScrollByAmount(int, int)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L534"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Scrolls by provided amounts with the origin in the top left corner of the viewport.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ScrollByAmount(int deltaX, int deltaY)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>deltaX</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Distance along X axis to scroll using the wheel. A negative value scrolls left.</p>
</dd>
<dt><code>deltaY</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Distance along Y axis to scroll using the wheel. A negative value scrolls up.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_ScrollFromOrigin_" data-uid="OpenQA.Selenium.Interactions.Actions.ScrollFromOrigin*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ScrollFromOrigin_OpenQA_Selenium_Interactions_WheelInputDevice_ScrollOrigin_System_Int32_System_Int32_" data-uid="OpenQA.Selenium.Interactions.Actions.ScrollFromOrigin(OpenQA.Selenium.Interactions.WheelInputDevice.ScrollOrigin,System.Int32,System.Int32)">
ScrollFromOrigin(ScrollOrigin, int, int)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L556"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Scrolls by provided amount based on a provided origin.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ScrollFromOrigin(WheelInputDevice.ScrollOrigin scrollOrigin, int deltaX, int deltaY)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>scrollOrigin</code> <a class="xref" href="OpenQA.Selenium.Interactions.WheelInputDevice.html">WheelInputDevice</a>.<a class="xref" href="OpenQA.Selenium.Interactions.WheelInputDevice.ScrollOrigin.html">ScrollOrigin</a></dt>
<dd><p>Where scroll originates (viewport or element center) plus provided offsets.</p>
</dd>
<dt><code>deltaX</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Distance along X axis to scroll using the wheel. A negative value scrolls left.</p>
</dd>
<dt><code>deltaY</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Distance along Y axis to scroll using the wheel. A negative value scrolls up.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</p>
</dd>
</dl>
<h4 class="section" id="OpenQA_Selenium_Interactions_Actions_ScrollFromOrigin_OpenQA_Selenium_Interactions_WheelInputDevice_ScrollOrigin_System_Int32_System_Int32__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>The scroll origin is either the center of an element or the upper left of the viewport plus any offsets.
If the origin is an element, and the element is not in the viewport, the bottom of the element will first
be scrolled to the bottom of the viewport.</p>
</div>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.MoveTargetOutOfBoundsException.html">MoveTargetOutOfBoundsException</a></dt>
<dd><p>If the origin with offset is outside the viewport.</p>
</dd>
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
<dd><p>If <code class="paramref">scrollOrigin</code> is null.</p>
</dd>
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt>
<dd><p>If both or either of Viewport and Element are set.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_ScrollToElement_" data-uid="OpenQA.Selenium.Interactions.Actions.ScrollToElement*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_ScrollToElement_OpenQA_Selenium_IWebElement_" data-uid="OpenQA.Selenium.Interactions.Actions.ScrollToElement(OpenQA.Selenium.IWebElement)">
ScrollToElement(IWebElement)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L521"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>If the element is outside the viewport, scrolls the bottom of the element to the bottom of the viewport.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions ScrollToElement(IWebElement element)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>element</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>Which element to scroll into the viewport.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">element</code> is null.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_SendKeys_" data-uid="OpenQA.Selenium.Interactions.Actions.SendKeys*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_SendKeys_OpenQA_Selenium_IWebElement_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.SendKeys(OpenQA.Selenium.IWebElement,System.String)">
SendKeys(IWebElement?, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L295"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sends a sequence of keystrokes to the specified element in the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions SendKeys(IWebElement? element, string keysToSend)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>element</code> <a class="xref" href="OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The element to which to send the keystrokes.</p>
</dd>
<dt><code>keysToSend</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The keystrokes to send to the browser.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">keysToSend</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_Interactions_Actions_SendKeys_" data-uid="OpenQA.Selenium.Interactions.Actions.SendKeys*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_SendKeys_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.SendKeys(System.String)">
SendKeys(string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L283"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sends a sequence of keystrokes to the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions SendKeys(string keysToSend)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>keysToSend</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The keystrokes to send to the browser.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this <a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a>.</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">keysToSend</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_Interactions_Actions_SetActiveKeyboard_" data-uid="OpenQA.Selenium.Interactions.Actions.SetActiveKeyboard*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_SetActiveKeyboard_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.SetActiveKeyboard(System.String)">
SetActiveKeyboard(string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L95"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sets the active keyboard device for this Actions class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions SetActiveKeyboard(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>The name of the keyboard device to set as active.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this Actions class.</p>
</dd>
</dl>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></dt>
<dd><p>If a device with this name exists but is not a keyboard.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_SetActivePointer_" data-uid="OpenQA.Selenium.Interactions.Actions.SetActivePointer*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_SetActivePointer_OpenQA_Selenium_Interactions_PointerKind_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.SetActivePointer(OpenQA.Selenium.Interactions.PointerKind,System.String)">
SetActivePointer(PointerKind, string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L74"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sets the active pointer device for this Actions class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions SetActivePointer(PointerKind kind, string name)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>kind</code> <a class="xref" href="OpenQA.Selenium.Interactions.PointerKind.html">PointerKind</a></dt>
<dd><p>The kind of pointer device to set as active.</p>
</dd>
<dt><code>name</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The name of the pointer device to set as active.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this Actions class.</p>
</dd>
</dl>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></dt>
<dd><p>If a device with this name exists but is not a pointer.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Interactions_Actions_SetActiveWheel_" data-uid="OpenQA.Selenium.Interactions.Actions.SetActiveWheel*"></a>
<h3 id="OpenQA_Selenium_Interactions_Actions_SetActiveWheel_System_String_" data-uid="OpenQA.Selenium.Interactions.Actions.SetActiveWheel(System.String)">
SetActiveWheel(string)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L116"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Sets the active wheel device for this Actions class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Actions SetActiveWheel(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>The name of the wheel device to set as active.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="OpenQA.Selenium.Interactions.Actions.html">Actions</a></dt>
<dd><p>A self-reference to this Actions class.</p>
</dd>
</dl>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></dt>
<dd><p>If a device with this name exists but is not a wheel.</p>
</dd>
</dl>
</article>
<div class="contribution d-print-none">
<a href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/Interactions/Actions.cs/#L29" 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>