I'm fairly new to using protractor and selenium. I've been attempting to replicate the mouse hover action on a button and retrieve values like the position of the mouse pointer and background colors. When I use mousemove, it works perfectly in Chrome but fails when I switch the browser to Firefox. It seems like the webdriver doesn't support this feature for some reason.
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');
});
When running this code on Firefox, I encounter the following error:
Message:
Failed: mouseMoveTo
Build info: version: '3.1.0',
java.version: '1.8.0_121'
Driver info: driver.version: RemoteWebDriver
Stack:
UnsupportedOperationError: mouseMoveTo
If anyone has any insights or solutions to offer, I would greatly appreciate it.