Actions

This class provides an abstraction layer for Selenium's action sequence functionality. It allows for easy interaction with web elements using different locating strategies and simulating complex user gestures like mouse movements, key presses, etc.

Classes

Actions

Methods

getActions() → {SeleniumActions}

Retrieves the current action sequence builder. The actions builder can be used to chain multiple browser actions.
Returns:
The current Selenium Actions builder object for chaining browser actions.
Type: 
SeleniumActions
Example
// Example of using the actions builder to perform a drag-and-drop operation:
const elementToDrag = await commands.action.getElementByCss('.draggable');
const dropTarget = await commands.action.getElementByCss('.drop-target');
await commands.action.getAction()
  .dragAndDrop(elementToDrag, dropTarget)
  .perform();