Skip to content

I.dragRight()

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

Usage

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

Parameters

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

Example

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

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