Appearance
I.dragRight()
Drags an element to the right by a specified horizontal offset, in pixels.
Usage
js
I.dragRight(element: string, x: number)Parameters
| Parameter | Type | Description |
|---|---|---|
element | string | Element to drag — by text, CSS selector, or XPath |
x | number | Horizontal 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.