Skip to content

I.dragLeft()

Drags an element to the left by a specified horizontal offset, in pixels.

Usage

js
I.dragLeft(element: string, x: number)

Parameters

ParameterTypeDescription
elementstringElement to drag — by text, CSS selector, or XPath
xnumberHorizontal distance in pixels to drag to the left.

Example

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

Drags the element "drag me" 10 pixels to the left.