在我的测试环境中,我使用来自http://webdriver.io/的非官方webdriverjs来测试我的前端。尽管我查看了源代码https://github.com/camme/webdriverjs,但我无法正确地定义鼠标移动。
使用
client.moveTo(undefined, 200, 200, function () {
client.buttonDown (function () {
//print location of click
});
});让我点击x: 200;y: 200。我的问题是没有注册鼠标移动(使用$('...').on('mousemove', func {}); )。
是否有任何方法来发送鼠标的移动,使他们被认为是摩丝情绪事件?
问候
发布于 2014-05-06 22:04:36
由于我已经在客户端获得了JQuery,所以我现在通过发送相应的Javascript代码来解决问题,这些代码会触发定制事件,例如:这里显示的Is there a way to trigger mousemove and get event.pageX, event.pageY? (第三个答案)
https://stackoverflow.com/questions/23504369
复制相似问题