Action Class in Selenium

November 6, 2017
Category: Selenium

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:

  1. When we want to mouse hover on an element like Menus
  2. When we want to perform Right Click on an element
  3. When we want to perform DoubleClick on an element
  4. When we want to perform Drag & Drop operation
  5. When we want to perform keyboard operations