ericmckean / chromedriver

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

mousemove should honor button state from buttonDown #889

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Issue Description:

I'm trying to use chromedriver for gesture testing related to mouse dragging.
However, it seems that mousemoves issued by chromedriver do not keep the button 
state from a buttonDown command like other drivers do.

Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):

0. Install NodeJS
1. npm install wd, a webdriver library implementing the jsonwire prototcol
2. run node ./drivertest.js

Expected Output:
mouse button 0 down
move mouse 100px right
move mouse 200px right
release mouse button 0
[ 'mousedown 1', 'mousemove 1', 'mousemove 1', 'mouseup 1' ]

Actual Output:
mouse button 0 down
move mouse 100px right
move mouse 200px right
release mouse button 0
[ 'mousedown 1', 'mousemove 0', 'mousemove 0', 'mouseup 1' ]

Attached chromedriver log. You can at timestamp [8.203], the mousedown has 
button: "left", but at timestamp [8.224], the mousemove has button: "none"

Original issue reported on code.google.com by dfre...@chromium.org on 21 Aug 2014 at 9:27

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mmcnu...@chromium.org on 21 Aug 2014 at 9:34

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18