The Actions
class is used to perform complex user interactions that go beyond simple clicks and text entry. It allows for advanced actions like:
- Mouse-related actions: Right-click (
contextClick
), double-click (doubleClick
), hover over an element (moveToElement
), and drag-and-drop (dragAndDrop
). - Keyboard-related actions: Pressing and releasing keys (
keyDown
,keyUp
), and sending multiple keys at once. - The
build()
andperform()
methods are essential to create and execute a chain of these actions.