Skip to main content

Home > @jsplumb/test > BrowserUITestSupport > dragConnection

BrowserUITestSupport.dragConnection() method#

Drags a connection, using the mouse, from one element or endpoint to another element or endpoint.

Signature:

dragConnection(d1: Element | Endpoint, d2: Element | Endpoint, mouseUpOnTarget?: boolean, events?: EventHandlers<Connection>): Connection;

Parameters#

ParameterTypeDescription
d1Element | Endpoint
d2Element | Endpoint
mouseUpOnTargetbooleanIf true, the mouseup event is posted on the target element. By default the mouseup event is fired on the document.
eventsEventHandlers<Connection>Map of event handlers for injecting tests into the lifecycle.

Returns:

Connection