Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > dragANodeAround

BrowserUITestSupport.dragANodeAround() method#

Drags 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;

Parameters#

ParameterTypeDescription
elHTMLElementElement to drag around.
functionToAssertWhileDragging() => booleanOptional function to call each time the element is moved.
assertMessagestringMessage to supply to the assert while dragging function.

Returns:

void