如何在程式設計中為 Angular 應用程式和 HTML 建立 DragEvent?


使用 Protractor API 建立 DragEvent。官方 狀態

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();

更新於:29-1 月-2020

154 次瀏覽

開始你的職業生涯

完成課程獲得認證

開始
廣告
© . All rights reserved.