尝试使用splinter(python2.7)打开浏览器时出错

时间:2018-07-16 03:45:13

标签: python-2.7 splinter

当我在python 2.7终端上键入以下代码时:

from splinter import *
navegador = Browser()

我收到以下错误:

File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/splinter/browser.py", 
line 63, in Browser
return driver(*args, **kwargs)
File "/usr/local/lib/python2.7/dist- 
packages/splinter/driver/webdriver/firefox.py", line 65, in __init__
timeout=timeout, **kwargs)
File "/home/paulo/.local/lib/python2.7/site- 
packages/selenium/webdriver/firefox/webdriver.py", line 65, in 
__init__
self.service.start()
File "/home/paulo/.local/lib/python2.7/site- 
packages/selenium/webdriver/common/service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'wires' 
executable needs to be in PATH. 

我使用的该代码本应为我打开Firefox。我在网上搜索了解决方案,但没有找到满意的答案。预先感谢帮助我解决此问题的任何人。

0 个答案:

没有答案