如何以编程方式为Angular应用和HTML创建DragEvent?
要创建DragEvent,请使用量角器API。官方文件 指出:
The browser.get method loads a page. Protractor expects Angular to be present on a page, so it will throw an error if the page it is attempting to load does not contain the Angular library. (If you need to interact with a non-Angular page, you may access the wrapped web driver instance directly with browser.driver).
也使用以下模式:
browser
.actions()
.dragAndDrop(myEle, {x:100,y:100})
.perform();热门推荐
10 妹妹生日祝福语简短唯美
11 元旦联谊祝福语简短精辟
12 文学短句祝福语大全简短
13 20岁简短生日祝福语
14 玫瑰礼盒祝福语大全简短
15 简短霸气的考试祝福语
16 早日回国祝福语简短英语
17 旅游景区新春祝福语简短
18 思念丈夫祝福语简短的话