dragAndDrop
Drags the first element over second or drags an element to an offset (or distance) of given x, y
.
dragAndDrop(firstElemId, secondElemId)
# Or
dragAndDrop(elemId, x, y)
#
ParametersfirstElemId
: Element needs to be draggedsecondElemId
: Element that is the drag targetelemId
: Element needs to be draggedx
: Anumber
. Offset in x axis in pixels, can be negative.y
: Anumber
. Offset in y axis in pixels, can be negative.
#
Returns- No value
#
ExampledragAndDrop(findElement('block', by.testId), 200, -50)# drags element 200px to the right and 50px up