- Consider the situation where certain actions will be performed using the mouse and key boards.
- Actions like moving the mouse cursor on an element, double clicking, right clicking and dragging and dropping an element etc. All these actions are performed by using the mouse. These actions are called as mouse hover actions.?
- Selenium directly cannot perform the mouse hover actions on the element.
- In order to do action events, you need to use?org.openqa.selenium.interactions.Actions?class.
- The Action class is user-facing API for emulating complex user action events. You can directly use this class rather than using the input devices, i.e. Keyboard or Mouse. It Implements builder pattern, in which a complex object is constructed that can be further used to create different representation of same object.