WebDriverException: Message: Missing 'marionetteProtocol' field in handshake

对着背影说爱祢 提交于 2020-01-02 14:11:35

问题


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

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

I also did :

${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}

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..


回答1:


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

  • firefox version is too low , update to 48 is OK
  • python 2.7
  • selenium 3.0.1
  • geckodriver v0.11.0.exe
  • firefox 48.0


来源:https://stackoverflow.com/questions/38991440/webdriverexception-message-missing-marionetteprotocol-field-in-handshake

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!