WebDriverException: Message: Expected browser binary location, but unable to find binary in default location

0

I am trying to use Selenium in Python 2.7 and it throws me the following error message.

  

WebDriverException: Message: Expected browser binary location, but   unable to find binary in default location, no   'moz: firefoxOptions.binary' capability provided, and no binary flag   set on the command line

What can it be?

    
asked by Pablo 19.10.2017 в 13:22
source

1 answer

1

Something like this is missing:

from selenium.webdriver.firefox.firefox_binary import FirefoxBinary

binary = FirefoxBinary('F:\FirefoxPortable\Firefox.exe')
driver = webdriver.Firefox(firefox_binary=binary)
    
answered by 19.10.2017 / 15:59
source