Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Selenium Grid - Firefox - UnknownCommandError: POST /session/{sessionId}/moveto did not match a known command #4687

Open
sahil1610 opened this issue Jan 31, 2018 · 10 comments

Comments

@sahil1610
Copy link

Bug report

  • Node Version: 8.9.1
  • Protractor Version: 5.2.2
  • Angular Version: 1.3.7
  • Browser(s): Firefox
  • Operating System and Version OS X MAC SIERRA

Meta -

OS: OSX

Selenium Grid Version: 3.8.1

Browser: Firefox

Browser Version: 57.0.4

Expected Behavior - Actions class function should work

Actual Behavior - Actions class function are not working

This issue is specific to selenium grid only

Grid is setup using DOCKER with the latest versions of selenium, chrome and firefox

Steps to reproduce -

Run the following protractor script in FIREFOX browser:

describe('Test', function () { 'use strict'; it('Firefox Actions class', function () { browser.get('http://www.protractortest.org/#/'); browser.actions().mouseMove(element(by.css('.github-button'))).perform(); browser.sleep(10000); }); })

Note that the same works on Selenium grid 3.2.0

As per SeleniumHQ/selenium#5332 this is an issue with Protractor

@IgorSasovets
Copy link
Contributor

Hi, @sahil1610! I had the same issue with Firefox. Here is my solution: https://github.com/IgorSasovets/protractor-firefox-support

@ChristianM18
Copy link

Hi!
Same issue here, ActionSequences do not work starting from Firefox 47.

  • Selenium 3.9.1
  • GeckoDriver 0.19.1
  • Protractor 5.2.2

Thank you @IgorSasovets for your solution, I will test it when I can.

@IgorSasovets
Copy link
Contributor

IgorSasovets commented Feb 21, 2018

Hi, @cocay ! I hope that my solution will help you. Please take a look at https://github.com/IgorSasovets/protractor-firefox-support/blob/master/tests/drag-and-drop-test.js. There are examples of usage.

@sahil1610
Copy link
Author

Hi @IgorSasovets your solution works, but same has to be fixed within protractor. It's been more than 1 year since selenium 3 is launched and mouse move is not working since then.

@IgorSasovets
Copy link
Contributor

Hi @sahil1610 ! I'm happy that my solution helped you. Hope that they will fix this problem ASAP.

IgorSasovets added a commit to IgorSasovets/get-config-capabilities that referenced this issue Mar 2, 2018
get-config-capabilities
----------------------

This is simple example that explains how to get config capabilities variables inside test.
Please take a look at angular/protractor#4719 for description of issue.

Dependencies
--------------

In this example I used [protractor-firefox-support](https://github.com/IgorSasovets/protractor-firefox-support) lib that provides custom implementations of basic Actions class function which doesn't work in Firefox (v.52 and higher). Take a look at angular/protractor#4687.
@sarndt
Copy link

sarndt commented May 25, 2018

I still have this issue, is there any ETA when this will be fixed?

@lacymorrow
Copy link

Still having this issue

@rkrisztian
Copy link

rkrisztian commented Mar 13, 2019

I've been using Docker images from https://github.com/elgalu/docker-selenium, which put Chrome and Firefox into the same container (as opposed to https://github.com/SeleniumHQ/docker-selenium), thus by default it exposes a Selenium Grid port to us, rather than just a Node. However, elgalu's images can be configured to expose the ports of the Firefox- and Chrome-specific Selenium nodes directly.

=> When using the Grid, Protractor tests fail.
=> When using the Nodes directly, Protractor tests are OK.

I also did a check with the Selenium Java bindings against the same container:

new Actions(seleniumDriver)
.moveToElement(seleniumDriver.findElement(By.id("someField")), 5,5)
.moveByOffset(5, 5)
.build().perform();

=> In both cases, the action could be performed just fine.

=> Yes, this seems a bug in Protractor.

(Answering this because it wasn't trivial for SeleniumHQ/selenium#5332 ...)

@rkrisztian
Copy link

Might be fixed in Protractor 6, need to retest...

@sahil1610
Copy link
Author

sahil1610 commented May 1, 2019

@rkrisztian It's still not fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants