升级 mac os 后, 之前的 selenuim

2016-09-19 14:36:59 +08:00
 redhatping

selenium.common.exceptions.WebDriverException: Message: Can't load the profile. Profile Dir: /var/folders/_6/t3wgvc3s5kjg3n32j202w6tw0000gn/T/tmpVMGzCF/webdriver-py-profilecopy If you specified a log_file in the FirefoxBinary constructor, check it for details.


环境 python2.7 , selenium 2.53.6, firefox 48.0.1

之前没问题的, 有段时间没运行,发现 MAC 升级后 ,这样报错。

感觉应该是环境变量出了问题。

1790 次点击
所在节点    Python
1 条回复
LigeLaige
2016-09-20 08:56:45 +08:00
我在 windows 上面也报这个错误, Ubuntu 上偶尔,所用的 python2.7 , selenium 2.53.6, firefox 48.0.1 与题主版本相同;换成 python 3.5 以及对应的最新 selenium 还是报错

https://gist.github.com/huangjinqiang/d9385c8d4d81c6b7adfd3fc57c09cd0c

都会在 driver = webdriver.Firefox(...) 这里报错
同求解答

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/307249

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX