Classes
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();