Protractor - MouseMove is not supported for Firefox

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.

+4
source share
2 answers

mouseMoveworks great for me. Looks like a problem for you with a combination. Firefox Version - gecko driver version - Protractor Version Suggest you upgrade all 3 to the latest available versions.

,

  • geckodriver-v0.9.0
  • Firefox - 45.0
  • - 4.0.10
+1

. , 3.1.0 ( 2.53.1).

(node:8988) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): UnsupportedOperationError: mouseMoveTo
Build info: version: '3.1.0', revision: '86a5d70', time: '2017-02-16 07:57:44 -0800'
System info: host: 'EC2AMAZ-GHIOFIE', ip: '10.199.2.240', os.name: 'Windows NT (unknown)', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: RemoteWebDriver
(node:8988) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)

: 3.1.0

Firefox: 51

: 5.1.1

+1

Source: https://habr.com/ru/post/1670250/


All Articles