Skip to content

Commit

Permalink
docs: fix action example
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Feb 6, 2025
1 parent 90de7e4 commit 719a6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/engine/command/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export class Actions {
* @returns {SeleniumActions} The current Selenium Actions builder object for chaining browser actions.
* @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');
* const elementToDrag = await commands.element.getByCss('.draggable');
* const dropTarget = await commands.element.getByCss('.drop-target');
* await commands.action.getAction()
* .dragAndDrop(elementToDrag, dropTarget)
* .perform();
Expand Down

0 comments on commit 719a6ad

Please sign in to comment.