Skip to content

I.dragUp()

Drags an element upward by a specified vertical offset, in pixels.

Usage

js
I.dragUp(element: string, y: number)

Parameters

ParameterTypeDescription
elementstringElement to drag — by text, CSS selector, or XPath
ynumberVertical distance in pixels to drag upwards.

Example

js
I.goTo("http://jqueryui.com/resources/demos/droppable/default.html")
I.dragUp("drag me", 10)

Drags the element "drag me" 10 pixels up.