“Actions” class in Selenium
One of the API’s from Selenium which is powerful enough to perform complex actions from the user. This class offers wide variety of methods to support the user actions for Key-Board and Mouse
Actions – KeyDown, KeyUp, SendKeys etc.,
Actions – Click, ContextClick, ClickandHold etc.,
and Perform Methods – Build is used to generate multiple actions together whereas
perform is used to execute the action bundle.
How to perform complex user actions in selenium?
How to implement
1) Create an object of Actions class
2) Identify the sequence of actions to
be performed on WebElement or just actions
3) use the build method to bundle the
sequence of actions.
4) use the perform method to execute