Optional
abilityOptional
callStatic
executeDrag the specified source element to the specified target element and drop it.
the locator of the source element.
the locator of the target element.
Optional
options: DragAndDropActionOptions(optional) options for the drag and drop action.
new DragAndDrop instance
simple call with just locator
DragAndDrop.execute(
page.locator('sourceLocator'),
page.locator('targetLocator')
);
with options
DragAndDrop.execute(
page.locator('sourceLocator'),
page.locator('targetLocator'),
{ timeout: 3000 }
);
Generated using TypeDoc
DragAndDrop an element specified by a locator and drop it on an element specified by another locator.