Skip to content

Instantly share code, notes, and snippets.

Avatar

Lee Saxby leesaxby

View GitHub Profile
@leesaxby
leesaxby / native_js_drag_and_drop_helper.js
Last active Sep 15, 2018 — forked from druska/native_js_drag_and_drop_helper.js
Simulate drag and drop workaround for protractor
View native_js_drag_and_drop_helper.js
/*
Original unmodified code (some changes were required to fit our needs i.e our dnd directive).
https://gist.github.com/druska/624501b7209a74040175
The following code is a workaround for https://bugs.chromium.org/p/chromedriver/issues/detail?id=841.
There appears to be a bug with selenium chrome driver where by html5 drag and drop (dnd)
events don't fire when using either:
browser.actions().dragAndDrop(dragElement, dropElement).perform();
or