Firefox使用Locatable selenium失败的鼠标事件

Firefox使用Locatable selenium失败的鼠标事件,selenium,mouse,Selenium,Mouse,我正在使用selenium locatable触发鼠标事件。对于鼠标向下的ex: Locatable locat = (Locatable) we; Mouse mouse = ((HasInputDevices) driver).getMouse(); mouse.mouseDown(locat.getCoordinates()); 这段代码在Chrome上运行得非常好,但在最后一行对firefox失败。firefox驱动程序还需要其他方法吗?失败并出现错误“mous

我正在使用selenium locatable触发鼠标事件。对于鼠标向下的ex:

    Locatable locat = (Locatable) we;
    Mouse mouse = ((HasInputDevices) driver).getMouse();
    mouse.mouseDown(locat.getCoordinates());

这段代码在Chrome上运行得非常好,但在最后一行对firefox失败。firefox驱动程序还需要其他方法吗?

失败并出现错误“mousemovoint”您看到的确切错误是什么?你能用完整的错误堆栈跟踪更新这个问题吗?我只看到这个错误:“调用失败,错误为mousemove”所有鼠标事件都是一样的:mouseup、mousedown、mousemove失败,错误为“mousemove”你看到的确切错误是什么?你能用完整的错误堆栈跟踪更新这个问题吗?我只看到这个错误:“调用失败,错误为mousemovive”所有鼠标事件都是一样的:mouseup、mousedown、mousemove