0

In my testing environment I'm using the unofficial webdriverjs from http://webdriver.io/ for testing my frontend. Even though I took a look in the source https://github.com/camme/webdriverjs I was unable to define mouse movements properly.

Using

client.moveTo(undefined, 200, 200, function () {
    client.buttonDown (function () {
        //print location of click
    });
});

gives me a click at x: 200; y : 200. My problem is that no mouse movement is registered (using $('...').on('mousemove', func {}); )

Is there any way to send mouse movements in such a way that they are recognized as mousemove events?

Regards

oberlies
  • 11,503
  • 4
  • 63
  • 110
ben
  • 5,671
  • 4
  • 27
  • 55
  • Selenium doesn't trigger mousemove events while setting the mouse cursor via `moveto`, though it could be get implemented in future. We will see. – ChristianB May 07 '14 at 00:15

1 Answers1

0

Since I already got JQuery on the client side I solved the problem now by sending respective Javascript code which triggers customized events like for example shown here: Is there a way to trigger mousemove and get event.pageX, event.pageY? (third answer)

Community
  • 1
  • 1
ben
  • 5,671
  • 4
  • 27
  • 55