In general we can use WebDriver class methods to automate website pages which is developed using html. In rare cases we can use ‘Actions’ class methods mainly for keyboard & mouse operations.
Situations when we use Actions class:
- When we want to mouse hover on an element like Menus
- When we want to perform Right Click on an element
- When we want to perform DoubleClick on an element
- When we want to perform Drag & Drop operation
- When we want to perform keyboard operations