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)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: hsteen, Unassigned)
Details
(Keywords: pi-marionette-server, pi-marionette-userinput)
Attachments
(1 file)
757 bytes,
text/x-python-script
|
Details |
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•10 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)
Comment 2•10 years ago
|
||
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•10 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.)
Updated•9 years ago
|
Reporter | ||
Comment 4•9 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? ;))
Comment 5•9 years ago
|
||
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.
Comment 6•6 years ago
|
||
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
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•