Search code examples
angularjsangularprotractore2e-testingangular-e2e

Protractor's mouseMove() unsupported for geckodriver firefox


Is there any alternative for protractor's mouseMove? I would like the mouse to hover over the menu. But it appears to be unsupported with geckodriver.

So far I've tried, browser.executeScript('arguments[0].mouseMove()', element(by.className('menu')));

But get this error, Failed: TypeError: arguments[0].mouseOver is not a function.

Thanks :)


Solution

  • I managed to solve it :) Thanks for your help.

    Here's what I found worked,

    browser.executeScript( 'return arguments[0].click();', browser.driver.findElement(by.className('menu')));