WebDriverException:消息:握手中缺少“marionetteProtocol"字段 [英] WebDriverException: Message: Missing 'marionetteProtocol' field in handshake

查看:106
本文介绍了WebDriverException:消息:握手中缺少“marionetteProtocol"字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试在本地运行机器人框架测试脚本(Ubuntu 12.04 LTS 64 位).我遇到的问题是无法在 Open Browser 中启动 FF 浏览器.以下是我所拥有的设置的详细信息/规格.

I'm currently trying to run a robotframework test scripts locally (Ubuntu 12.04 LTS 64 bit). The issue that I faced was not able to launch FF browser in Open Browser. Below is the details/specs of the setup that I have.

  • Firefox (v26.0)
  • Selenium2Library
  • selenium-server-standalone-2.53.1.jar
  • geckodriver-v0.9.0

请注意,我使用了与集线器和节点相同的机器(硒网格)

Please note that I used same machine as hub and node (selenium grid)

这里是启动我的集线器的命令:

Here the command to launch my hub :

java -jar selenium-server-standalone-2.53.1.jar -role hub -port 4444

虽然这里是注册我的节点的命令:

While here's the command to register my node :

java -jar selenium-server-standalone-2.53.1.jar -role node -hub http://localhost:4444/grid/register -trustAllSSLCertificates

我按照https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver(在路径中添加可执行的连线)

I did what is per told in https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver (add wires executable in the PATH)

我也做过:

${ff default caps}    Evaluate    sys.modules['selenium.webdriver'].common.desired_capabilities.DesiredCapabilities.FIREFOX    sys,selenium.webdriver
Set To Dictionary    ${ff default caps}    marionette=${True}
Create Webdriver    Firefox    executable_path=\home\my\wires
Open Browser   ${HOMEPAGE}  ff  None  ${HUB}

因此,FF 浏览器启动,但未打开 URL ${HOMEPAGE}.我一直在谷歌上搜索并在这个问题上停留了很长时间.请帮忙..

As a result, the FF browser launch, but not opening the URL ${HOMEPAGE}. I've been googling around and stuck in this issue for so long. Please help..

推荐答案

https://github.com/mozilla/geckodriver/releases

  • firefox 版本太低,更新到 48 就可以了
  • python 2.7
  • 硒 3.0.1
  • geckodriver v0.11.0.exe
  • Firefox 48.0

这篇关于WebDriverException:消息:握手中缺少“marionetteProtocol"字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆