javascript - 如何使用量角器为e2e模拟拖放功能?
使用拖动的HTML代码是:
<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>
drop的代码是:
<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)">
我们应该通过拖拽进行搜索吗?还是通过css?
最佳答案:
1 个答案:
答案 0 :(得分:0)
使用dragAndDrop()
操作方法,例如:
browser.actions().dragAndDrop(
element(by.css("div[dnd-draggable]")),
element(by.css("div[dnd-dragover]"))
).perform();
本文经用户投稿或网站收集转载,如有侵权请联系本站。