I\'m trying to do automated testing with WebDriver, but it currently has no ability to simulate mouse wheel events. As a workaround I\'m trying to fire these events with Ja
Well,
init...()
method, which for the mouse event is initMouseEvent()
. (spec)Here's a fixed up testcase, which works in Firefox: http://jsfiddle.net/6nnMV/
Probably not useful to you, but may be of interest to other people looking to simulate events, here's how (privileged) unit tests in mozilla simulate 'real' events: http://hg.mozilla.org/mozilla-central/annotate/a666b4f809f0/testing/mochitest/tests/SimpleTest/EventUtils.js#l248