I am using dhtmlx scheduler component with angular. Dhtmlx scheduler You can find drag and drop of events in live demo of Timeline view.
I need to writer protractor test case for it. How can I perform drag and drop of dhtmlx component using protractor?
The demos available on the Dhtmlx scheduler page don't use angular. I've found another suitable demo page which I would use as an example.
The general idea is pretty simple - use
dragAndDrop()
function. Unfortunately it is not documented on the API documentation page. May be this is because it is coming from webdriverjs and protractor has nothing to do with it. Anyway, currently, you can find some information and samples here:Basically you can either move an element by
x
ory
offset to the left or right or top or bottom; or, you can move to an another element.Here's an example (moving
Task #1
by 1000 to the right):Alternatively, you can manually chain
mouseDown()
,mouseMove()
,mouseUp()
actions, examples: