Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How do I programmatically create a DragEvent for Angular app and HTML?
To create a DragEvent, use the protractor API. The official documentation states:
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).
Use the following pattern as well:
browser
.actions()
.dragAndDrop(myEle, {x:100,y:100})
.perform(); Advertisements
