Home > @jsplumb/test > BrowserUITestSupport > dragANodeAround
#
BrowserUITestSupport.dragANodeAround() methodDrags a node around, a random number of steps up to 50, by a random delta in x and y each time. After the node has been randomly moved around, a mouseup event is fired.
Signature:
dragANodeAround(el: HTMLElement, functionToAssertWhileDragging?: () => boolean, assertMessage?: string): void;
#
ParametersParameter | Type | Description |
---|---|---|
el | HTMLElement | Element to drag around. |
functionToAssertWhileDragging | () => boolean | Optional function to call each time the element is moved. |
assertMessage | string | Message to supply to the assert while dragging function. |
Returns:
void