Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View leesaxby's full-sized avatar

Lee Saxby leesaxby

View GitHub Profile
@leesaxby
leesaxby / native_js_drag_and_drop_helper.js
Last active May 9, 2023 06:35 — forked from druska/native_js_drag_and_drop_helper.js
Simulate drag and drop workaround for protractor
/*
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