Closed Bug 1077711 (marionettednd) Opened 10 years ago Closed 6 years ago

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

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: hsteen, Unassigned)

Details

(Keywords: pi-marionette-server, pi-marionette-userinput)

Attachments

(1 file)

Attached file 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".
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.
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.)
(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.
This was written against the old actions API.  The new actions API
should be able to handle this, however, it is not exposed in the
Marionette Python client.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: