2017-01-29 12 views
0

Windows 7でFirefox 50.0.1でSelenium 3.0.2を使用しようとしています。私はthisの指示に従って正しくドライバを設定していますそして、パスが、私は次のエラーを取得しています:FirefoxのSelenium 3.0.2エラー:実行ファイルに間違った権限がある可能性があります

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 

私は、私はまだ上記のエラーを取得し、管理者としてスクリプトを実行しようとした場合でも。私はgeckoドライバの最新バージョン(0.13)を使用しており、64ビットと32ビットの両方のバージョンを試しました。これは現在のバージョンの既知の問題ですか?

答えて

1

exeアドレス全体を使用する必要があります。あなただけのフォルダを渡す場合は、問題があります。

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

ありがとうございました!それが修正され、ChromeウェブドライブとFirefoxのgeckodriverの両方で動作します。 – Vasilis

関連する問題