FuckTheWorld / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Chrome Driver Doesn't do drag and drop #1110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Driver 2.15 and Chrome 42, drag and drop has no apparent effect.
Linux Ubuntu
Chrome 42
Chrome driver 2.15
Java 1.7
Trying to drag and drop div inside td or just td.  No variation seems to 
respond.

See http://goo.gl/ll2FvQ for common issues.

Issue Description:
<enter description here>

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):
<enter repro steps here>

-----Other helpful tips:
Attach your chromedriver log with verbose logging enabled (see
http://goo.gl/5Sx8mC for how to do this).

Original issue reported on code.google.com by Tom.Knu...@gmail.com on 27 May 2015 at 1:13

GoogleCodeExporter commented 9 years ago
Tom.Knud.1@

Tried with Ubuntu 14.04, ChromeDriver 2.15, chrome v42 and selenium 2.45
but unable to reproduce the issue.

Can you please attach sample testcase and html to recreate this issue locally.

---------------------java --------------------
        WebDriver driver = new ChromeDriver();
        driver.get("http://jqueryui.com/droppable/");
        driver.switchTo().frame(0);   
        WebElement source1 = driver.findElement(By.id("draggable"));
        WebElement target1 = driver.findElement(By.id("droppable"));
        Actions operation = new Actions(driver);
        //operation.dragAndDrop(source1, target1).perform();

                operation.dragAndDrop(source1, target1).build().perform();
                Thread.sleep(4000);
                driver.quit()

Please let me know if I have tried it differently than what you have mentioned 
as bug.

Original comment by agau...@chromium.org on 27 May 2015 at 12:02

GoogleCodeExporter commented 9 years ago
Tom.Knud.1@

can you please let us know if you are still seeing this issue ?
as mentioned in comment#1 we are unable to reproduce this issue at our end.

thanks

Original comment by agau...@chromium.org on 25 Jun 2015 at 10:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Ok, I've made a little test case.  I've tried your version above to no avail 
and about  any other way I could think of including the one in this file.  Just 
can't seem to get it to work.  However, it works fine when do with the mouse.  
thanks

Original comment by Tom.Knu...@gmail.com on 25 Jun 2015 at 7:26

Attachments:

GoogleCodeExporter commented 9 years ago
Tom.Knud.1@

thanks for the update, can we close this ticket if your issue is resolved ?
dragAndDrop operation works fine in our test.

Thanks

Original comment by agau...@chromium.org on 26 Jun 2015 at 9:52

GoogleCodeExporter commented 9 years ago
The file I attached did not and still does not work.  It is driver 2.15+ on 
chrome 4.2+.

Original comment by Tom.Knu...@gmail.com on 26 Jun 2015 at 12:10

GoogleCodeExporter commented 9 years ago
I found the same issue. For firefox and IE works correctly. The driver is 2.16 
on chrome 43. Here is my code:

---------------------java --------------------
Actions actions = new Actions(driver);
                        actions.clickAndHold(originPosition);                          
                        actions.moveToElement(target).moveByOffset(1, 1).release().perform();
---------------------java --------------------

Did I use the method correctly? 
The website I use is:
http://www.jeasyui.com/tutorial/dd/dnd1_demo.html

Please help me.

Original comment by AgustinC...@gmail.com on 2 Jul 2015 at 1:20