Firefox 50的Selenium 3.0.2错误:可执行文件可能具有错误的权限

我试图在Windows 7中使用Selenium 3.0.2和Firefox 50.0.1。我按照这篇文章中的说明来正确设置驱动程序和path,但是我收到以下错误:

Traceback (most recent call last): File "ixps-bgp.he.net.py", line 38, in <module> browser = webdriver.Firefox(firefox_binary=binary,capabilities=caps, executable_path='<path to gecko driver>') File "C:\Users\<myusername>\AppData\Local\Continuum\Anaconda2\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 140, in __init__ self.service.start() File "C:\Users\<myusername>\AppData\Local\Continuum\Anaconda2\lib\site-packages\selenium\webdriver\common\service.py", line 86, in start os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: '' executable may have wrong permissions. Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x00000000023BA240>> ignored 

即使当我尝试以pipe理员身份执行脚本,我仍然得到上面的错误。 我正在使用最新版本的壁虎驱动程序(0.13),我尝试了64位和32位版本。 这是任何当前版本的已知问题?

你应该使用整个exe地址。 如果你通过文件夹,你会有问题。

 >>>chromepath = "C:\\Dev\\chromedriver.exe" >>>driver = webdriver.Chrome(chromepath)