File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 4343import static org .openqa .selenium .testing .TestUtilities .isOldIe ;
4444
4545import org .junit .Test ;
46+ import org .openqa .selenium .interactions .Actions ;
4647import org .openqa .selenium .support .ui .WebDriverWait ;
4748import org .openqa .selenium .testing .Ignore ;
4849import org .openqa .selenium .testing .JUnit4TestBase ;
@@ -123,6 +124,24 @@ public void testShouldFireMouseOverEventWhenClicking() {
123124 assertEventFired ("mouseover" , driver );
124125 }
125126
127+ /**
128+ * This isn't quite right. We just loaded the page, and the native mouse is assumed to be at 0,0
129+ * (or the last location the mouse was in) In order to click the element, the mouse will have to
130+ * move towards it.
131+ */
132+ @ Test
133+ @ Ignore (MARIONETTE )
134+ public void testShouldFireMouseMoveEventWhenClicking () {
135+ driver .get (pages .simpleTestPage );
136+ // Move the mouse cursor to somewhere pretty far down the page
137+ new Actions (driver ).moveToElement (driver .findElement (By .id ("span" ))).perform ();
138+
139+ driver .get (pages .javascriptPage );
140+ clickOnElementWhichRecordsEvents (driver );
141+
142+ assertEventFired ("mousemove" , driver );
143+ }
144+
126145 @ Test
127146 public void testShouldNotThrowIfEventHandlerThrows () {
128147 driver .get (pages .javascriptPage );
You can’t perform that action at this time.
0 commit comments