Home > @jsplumb/test > BrowserUITestSupport > dragConnection
#
BrowserUITestSupport.dragConnection() methodDrags 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;
#
ParametersParameter | Type | Description |
---|---|---|
d1 | Element | Endpoint | |
d2 | Element | Endpoint | |
mouseUpOnTarget | boolean | If true, the mouseup event is posted on the target element. By default the mouseup event is fired on the document. |
events | EventHandlers<Connection> | Map of event handlers for injecting tests into the lifecycle. |
Returns:
Connection