Selenium:FirefoxProfile异常无法加载配置文件,OSX上没有打开浏览器

时间:2016-08-24 09:07:31

标签: selenium firefox robotframework

我安装了我的selenium并在运行pybot myTest之后,有关firefox配置文件的错误。

与此topic完全相同的问题。不幸的是我确实运行了pip install -U selenium但是

它仍然返回相同的错误,我的firefox版本是48.0.1。这是我的错误

<msg timestamp="20160824 16:01:19.947" level="INFO">Opening browser 'firefox' to base url 'https://www.google.com'</msg>
<kw name="Capture Page Screenshot" library="Selenium2Library">
<doc>Takes a screenshot of the current page and embeds it into the log.</doc>
<msg timestamp="20160824 16:01:50.167" level="FAIL">No browser is open</msg>
<status status="FAIL" endtime="20160824 16:01:50.167" starttime="20160824 16:01:50.157"></status>
</kw>
<msg timestamp="20160824 16:01:50.167" level="WARN">Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open</msg>
<msg timestamp="20160824 16:01:50.168" level="FAIL">WebDriverException: Message: Can't load the profile. Profile Dir: /var/folders/b9/th8_45d55_16rlk9wsdfp8300000gn/T/tmppUXVZI/webdriver-py-profilecopy If you specified a log_file in the FirefoxBinary constructor, check it for details.
</msg>

任何帮助或建议都会非常有用,请提前感谢。

1 个答案:

答案 0 :(得分:1)

你在运行什么版本的Selenium?他们决定停止支持Firefox并引入Marionette。您可以使用Marionette或将Selenium升级到2.53.1,我相信此版本专门用于Firefox支持。古德勒克!