How to do drag and drop in protractor ?
See original GitHub issueLooking at webdriverjs I can see there’s a way to do drag and drop such as this:
* <p>Example:<pre><code>
* new webdriver.ActionSequence(driver).
* keyDown(webdriver.Key.SHIFT).
* click(element1).
* click(element2).
* dragAndDrop(element3, element4).
* keyUp(webdriver.Key.SHIFT).
* perform();
* </pre></code>
How to use it with protractor?
Issue Analytics
- State:
- Created 10 years ago
- Comments:27 (4 by maintainers)
Top Results From Across the Web
How to simulate a drag and drop action in protractor?
How to simulate a drag and drop action in protractor? · a touchStart of the ".handler-max" element · a move of the thumb...
Read more >Drag and Drop | Actions | Protractor Tutorial | LetCode
protractor #letcode ##javascriptLet's understand how to perform drag and drop in protractor with async and await. Actions class in Selenium, ...
Read more >3 ways to drag and drop using protractor | by Puja Bhattacharya
I thought of penning this down, real quick, while the signal for SilkBoard opens up! There are 3 effective ways of doing this:...
Read more >How do I implement drag and drop in protractor? - Quora
You should use `actions ()` methods to perform mouse opperations using protractor. To perform drag and drop you can try the below code,...
Read more >Drag & Drop by Location | Protractor Tutorial | LetCode
protractor, #letcode #javascriptIn this video, we'll learn how to drag and drop to any positions using getLocation function.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not clean but I was able to get drag and drop to move by doing the following:
This worked for me in chrome Version 51.0.2704.103 (64-bit)
Even this issue is closed and very old: My problem occurs with @angular/cdk drag and drop. The solution of @rhartvig was close.
But i first needed to mousemove to the drag element and instead of directly moving the element to the destination, i had to move the mouse some pixels.