[英]Selenium web driver moveToElement (Actions) throwing error with marionette driver?
Getting following error in selenium tests 在selenium测试中获得以下错误
POST /session/ee1b9201-dadc-7446-b753-0a418a230d30/moveto did not match a known command
What i've done is 我做的是
Actions resetView = new Actions(driver);
resetView.moveToElement(el).perform();
Environment: 环境:
Firefox v47.0 Firefox v47.0
Webdriver 3.0.0-beta2 Webdriver 3.0.0-beta2
This is entirely expected. 这完全是预期的。 No releases of GeckoDriver (Marionette) support the
Actions
class. 没有GeckoDriver(Marionette)的版本支持
Actions
类。 It is one of the top priorities of Mozilla's team developing Marionette. 这是Mozilla开发Marionette团队的首要任务之一。
There is an issue that Selenium tracks , that is blocked by the Marionette issue . 有一个问题,Selenium跟踪 , 被木偶问题阻止 。
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. 由于问题超过3周,看着他们的提交日志 ,我不会很快屏住呼吸补丁。
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). 如果您可以使用Firefox 47.0.1, 因为在Firefox 47.0中他们有另一个错误 ,您可以使用有效的旧WebDriver API(不是Marionette)。 From 48 it stopped working, because you're supposed to use Marionette.
它从48开始停止工作,因为你应该使用木偶。 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. 如果您必须在Firefox上进行测试,我建议您应该坚持使用Firefox 47.0.1,Selenium 2.latest,最终将它们放入docker镜像中,然后运行。
That's what I do at least for Germanium , until it will hopefully eventually work also for Marionette. 这就是我至少为锗做的事情,直到它最终也会为Marionette工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.