Appearance
I.dragTo()
Drags an element and drops it onto another element.
Usage
js
I.dragTo(element: string, target: string)Parameters
| Parameter | Type | Description |
|---|---|---|
element | string | Element to drag — by text, CSS selector, or XPath |
target | string | Element to drop onto — by text, CSS selector, or XPath |
Example(s)
Drag elements using labels
js
I.goTo("http://jqueryui.com/resources/demos/droppable/default.html")
I.dragTo("drag me", "drop here")Drags the element "drag me" to the target element "drop here".
Drag elements using CSS
js
I.goTo("http://jqueryui.com/resources/demos/droppable/default.html")
I.dragTo("#draggable", "#droppable")Drags the element with the ID "draggable" to the target element with the ID "droppable".