Actions class gives us a way of emulating precisely how a user would interact with a web page/elements. Using an instance of this class you can describe a series of actions, such as clicking, double-clicking, dragging, pressing keys, etc. Once these actions are described, in order to carry the actions out, you must call must build the actions (.Build()) and then instruct them to be performed (.Perform()). So we must describe, build, perform. The examples below will expand upon this.
| Parameters | Details |
|---|---|
| source | Element to emulate button down at. |
| target | Element to move to and release the mouse at. |
| xOffset | x co-ordinate to move to. |
| yOffset | y co-ordinate to move to. |
This section contains information of Actions class of Selenium WebDriver. The Actions class provides you convenient methods to perform complex user gestures like drag and drop, hold and click etc.