

So you may additionally need to pass the absolute path of the firefox binary as firefox_binary argument while initializing the webdriverįrom _binary import FirefoxBinaryīinary = FirefoxBinary('C:\\Program Files\\Mozilla Firefox\\firefox.exe')įirefox_capabilities = Trueĭriver = webdriver.Firefox(firefox_binary=binary,executable_path='C:\\Utility\\BrowserDrivers\\geckodriver.exe') You can find the github discussion and merge here. It is to be noted that the current Selenium-Python binding is unstable with geckodriver and looks to be Architecture specific. Turned "marionette" to true and added executable_path while initializing the driver. Now as per Selenium 3.4.x specifications, I made a couple of modifications.

Result: Mozilla Firefox version 47 is opened. įrom _capabilities import DesiredCapabilitiesįirefox_capabilities = DesiredCapabilities.FIREFOXįirefox_capabilities = False To do a quick test, I simply copied your code and opened the url.You have set "marionette" to false through DesiredCapabilities class but still works and open a Mozilla Firefox Browser session of legacy releases which is also installed on your machine which is below version 48.x About your code, I don't see any significant errors in your code.By forcefully setting "marionette" to false through DesiredCapabilities class you won't be able to open Mozilla Firefox Browser above version 48.x. turning off marionette : Turning off marionette is no more a solution while we work with Selenium 3.x and recent Mozilla Firefox Browser releases."untrusted cert" error only on selenium-controlled firefox pop-ups : This is a common issue and we can avoid that through configuring the WebDriver instance through DesiredCapabilities class.You have take care of a couple of things as follows:
