Closed GoogleCodeExporter closed 9 years ago
Blame the WebDriver developers for not being specific enough in defining the
mouse functionality in JSONWireProtocol.
I haven't gotten a chance to try implementing the desired & missing Drag 'n
Drop support yet. But the general theory of implementation is as follows
(pardon the syntax, it may not be the exact JSONWireProtocol syntax for
required arguments, but should be close enough for you to get the point):
MoveTo SourceElementLocator
ButtonDown
MoveTo TargetElementLocator
ButtonUp
Now implement those JSONWireProtocol calls within the PHP bindings (likely
WebDriver.php).
Original comment by manga...@gmail.com
on 22 Dec 2011 at 12:15
Forgot to mention, attach a patch once you get this working...(or once I get it
working).
Original comment by manga...@gmail.com
on 22 Dec 2011 at 12:15
Ok, thank U. I'll try it.
Original comment by vakylen...@gmail.com
on 22 Dec 2011 at 12:26
I've verified the steps in my comment #1 works. I tested using the Facebook PHP
webdriver binding, as that was quicker to make calls to JSONWireProtocol. Now
just need to implement against this binding, and attach a patch to this issue.
FYI, reference for procedure using the Facebook version can be found here,
under drag and drop section.
https://github.com/facebook/php-webdriver/wiki/Example-command-reference
Original comment by manga...@gmail.com
on 28 Dec 2011 at 2:23
Original comment by manga...@gmail.com
on 9 Mar 2013 at 6:44
Fixed in revision 68 and revision 69. See PHPWebdriverTest.php for example of
how to do drag & drop with this binding. One can optionally wrap the commands
into a single dragAndDrop() method as needed, but that's up to the user.
Original comment by manga...@gmail.com
on 9 Jun 2013 at 2:57
Original issue reported on code.google.com by
vakylen...@gmail.com
on 15 Dec 2011 at 5:13