javascript - How to simulate drag and drop feature using protractor for e2e? -
hi html code drag used is:
<div class="btn-event" dnd-type="'newevent'" dnd-draggable="event" dnd-effect-allowed="copy" dnd-copied=""> <div class="icon"> <i class='demo'></i> </div> <span class="label" title="object name"> {{o.name}} </span> </div>
the code drop is:
<div class="row slot-body" dnd-list="sequenceslot.events" dnd-allowed-types="['newevent']" dnd-drop="drop(event, index, item, external, type, dropped item)" dnd-dragover="drop.validate(event, index, type)">
are supposed search dragabble ? or css ?
use draganddrop()
action method, example:
browser.actions().draganddrop( element(by.css("div[dnd-draggable]")), element(by.css("div[dnd-dragover]")) ).perform();
Comments
Post a Comment