Selenium 3.0.2 error with Firefox 50: executable file may have incorrect permissions

I am trying to use Selenium 3.0.2 with Firefox 50.0.1 on Windows 7. I followed the instructions in this to configure the driver and paths correctly, but I get the following error:

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

Even when I try to execute the script as an administrator, I still get the error above. I am using the latest gecko driver (0.13) and I have tried both the 64bit and 32bit versions. Is this a known issue with any of the existing versions?

0
source share
1 answer

exe. , .

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

Source: https://habr.com/ru/post/1653559/


All Articles