Bug 1077711 (marionettednd)

Not possible to simulate drag-and-drop (DnD) actions with Marionette (press().move().release() should probably do this)

NEW
Unassigned

Status

Testing
Marionette
3 years ago
2 years ago

People

(Reporter: hallvors, Unassigned)

Tracking

({ateam-marionette-server, ateam-marionette-userinput})

Trunk
x86_64
Windows 8.1
ateam-marionette-server, ateam-marionette-userinput
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8499858 [details]
auto-001-xhtml.py

I expected to be able to simulate DnD through the press().move().release() actions, but this doesn't seem to work.

This seems to be the intended way to do it in the WebDriver spec, which says "For example, if you wish to automate a drag and drop action in a browser, you would chain the clickAndHoldAction, moveMouseAction and buttonReleaseAction commands together".
(Reporter)

Comment 1

3 years ago
I have attached a file that I expect to trigger the right pass condition for the http://w3c-test.org/html/editing/dnd/canvas/001.xhtml test.
Alias: marionettednd
Summary: Not possible to simulate drag-and-drop (DnD) actions with Marionette (press().move().release() should do this - maybe?) → Not possible to simulate drag-and-drop (DnD) actions with Marionette (press().move().release() should probably do this)
Heh, I think this might be a bug in firefox. Using Firefox 32 and yesterday's Nightly on OSX 10.9, I can't drag and drop the boxes on http://w3c-test.org/html/editing/dnd/canvas/001.xhtml manually.

Hallvord, can you check whether or not you can physically drag and drop on that page using an updated firefox? If you can't do it manually, we'll move this bug to the appropriate category.
(Reporter)

Comment 3

3 years ago
It works for me in my currently installed Nightly (35.0a1 built on Sept 14th apparently) - on Windows. I can test on Ubuntu shortly. How weird it fails for you..!

(BTW - I did test manually in the same build I used with Marionette before reporting this.)
Keywords: ateam-marionette-server, ateam-marionette-userinput
(Reporter)

Comment 4

3 years ago
(Now I also have a real-world use case for DnD with files: attaching images to a GitHub issue from a Marionette script.. Can I have that some day? ;))
This is blocking newtab page test development as well. Can we get this on the work list soon?]
I am unable to do any drag and drop tests.
You need to log in before you can comment on or make changes to this bug.