Actions ClassWebDriver
Provides a mechanism for building advanced interactions with the browser.
Inheritance Hierarchy

SystemObject
  OpenQA.Selenium.InteractionsActions
    OpenQA.Selenium.InteractionsTouchActions

Namespace: OpenQA.Selenium.Interactions
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public class Actions : IAction

The Actions type exposes the following members.

Constructors

  NameDescription
Public methodActions
Initializes a new instance of the Actions class.
Top
Methods

  NameDescription
Protected methodAddAction
Adds an action to current list of actions to be performed.
Public methodBuild
Builds the sequence of actions.
Public methodClick
Clicks the mouse at the last known mouse coordinates.
Public methodClick(IWebElement)
Clicks the mouse on the specified element.
Public methodClickAndHold
Clicks and holds the mouse button at the last known mouse coordinates.
Public methodClickAndHold(IWebElement)
Clicks and holds the mouse button down on the specified element.
Public methodContextClick
Right-clicks the mouse at the last known mouse coordinates.
Public methodContextClick(IWebElement)
Right-clicks the mouse on the specified element.
Public methodDoubleClick
Double-clicks the mouse at the last known mouse coordinates.
Public methodDoubleClick(IWebElement)
Double-clicks the mouse on the specified element.
Public methodDragAndDrop
Performs a drag-and-drop operation from one element to another.
Public methodDragAndDropToOffset
Performs a drag-and-drop operation on one element to a specified offset.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodStatic memberGetLocatableFromElement
Gets the ILocatable instance of the specified IWebElement.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodKeyDown(String)
Sends a modifier key down message to the browser.
Public methodKeyDown(IWebElement, String)
Sends a modifier key down message to the specified element in the browser.
Public methodKeyUp(String)
Sends a modifier key up message to the browser.
Public methodKeyUp(IWebElement, String)
Sends a modifier up down message to the specified element in the browser.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveByOffset
Moves the mouse to the specified offset of the last known mouse coordinates.
Public methodMoveToElement(IWebElement)
Moves the mouse to the specified element.
Public methodMoveToElement(IWebElement, Int32, Int32)
Moves the mouse to the specified offset of the top-left corner of the specified element.
Public methodPerform
Performs the currently built action.
Public methodRelease
Releases the mouse button at the last known mouse coordinates.
Public methodRelease(IWebElement)
Releases the mouse button on the specified element.
Public methodSendKeys(String)
Sends a sequence of keystrokes to the browser.
Public methodSendKeys(IWebElement, String)
Sends a sequence of keystrokes to the specified element in the browser.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference