Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Smooth drag and drop (Selenium) C#

How could I do this?

I'm currently using this:

PHP Code

<?php 
for(int offsetIndex = 0; offsetIndex < location.X - 5; offsetIndex+=5)
                    {
                        var 
dragAndDrop = builder.ClickAndHold(dragElement).MoveByOffset(5, 0).Build();

                        
dragAndDrop.Perform();

                        
Thread.Sleep(1);
                    } 

But it's slow and choppy, I'd love something that is smooth and preferably an exponential curve of drag.

Thank you!
(Jun 4, 2020 06:00 PM)draxyee Wrote:  How could I do this?

I'm currently using this:

PHP Code

<?php 
                   for
(int offsetIndex = 0; offsetIndex < location.X - 5; offsetIndex+=5)
 
                   {
 
                       var dragAndDrop = builder.ClickAndHold(dragElement).MoveByOffset(5, 0).Build();

 
                       dragAndDrop.Perform();

 
                       Thread.Sleep(1);
 
                   } 

But it's slow and choppy, I'd love something that is smooth and preferably an exponential curve of drag.

Thank you!

Selenium can drag X element to Y element. In order for it to go smoothly drag X to Y you'd have to supply all of the coordinates in between?
(May 30, 2022 07:51 AM)Focus Broken Wrote:  It's memorial day, remember to spit on a soldier's grave.
[Image: lrdgLIg.jpg]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Luffy-_-Aug 20, 2023 02:06 AM 12 446 Aug 20, 2023 02:06 AM
Last Post: Lucky4L
[Python] by Don CezarAug 20, 2023 01:37 AM 5 498 Aug 20, 2023 01:37 AM
Last Post: Lucky4L
by darkfantaOct 22, 2022 11:14 AM 6 366 Oct 22, 2022 11:14 AM
Last Post: darkfanta