Selenium web driver moveToElement (Actions) throwing error with marionette driver?

后端 未结 2 1767
不知归路
不知归路 2020-12-11 20:07

Getting following error in selenium tests

POST /session/ee1b9201-dadc-7446-b753-0a418a230d30/moveto did not match a known command 

What i\'

相关标签:
2条回答
  • 2020-12-11 21:04

    This is entirely expected. No releases of GeckoDriver (Marionette) support the Actions class. It is one of the top priorities of Mozilla's team developing Marionette.

    0 讨论(0)
  • 2020-12-11 21:07

    There is an issue that Selenium tracks, that is blocked by the Marionette issue.

    Since the issue it's over 3 weeks old, and looking at their commit log, I wouldn't hold my breath for a patch anytime soon.

    If you can use Firefox 47.0.1, because in Firefox 47.0 they had another bug, you can use the old WebDriver API that works (not Marionette). From 48 it stopped working, because you're supposed to use Marionette. Yes, that Marionette that is not finished.

    If you must test on Firefox, I recommend you should stick to Firefox 47.0.1, Selenium 2.latest, eventually throw them in a docker image, and run like that.

    That's what I do at least for Germanium, until it will hopefully eventually work also for Marionette.

    0 讨论(0)
提交回复
热议问题