I am new to protractor and selenium. I am trying to simulate a mouseover on a button and read values such as the value of the mouse pointer and background color. I use mousemove and it works fine in Chrome, but not when I install the browser in Firefox. I believe that webdriver for some reason does not support this.
it('Mouse cursor should change to hand pointer', function() {
browser.get('URL');
var search = element(by.buttonText('SEARCH'));
browser.actions().mouseMove(search).perform();
expect(search.getCssValue("cursor")).toEqual('pointer');
});
I get the following error for Firefox:
Message:
Failed: mouseMoveTo
Build info: version: '3.1.0',
java.version: '1.8.0_121'
Driver info: driver.version: RemoteWebDriver
Stack:
UnsupportedOperationError: mouseMoveTo
Any help would be appreciated.
source
share