Search code examples
pythonseleniumfirefoxsafe-mode

Disallow safe mode on launch for Selenium in Python?


I'm trying to launch into a website using a Selenium MWE:

from selenium import webdriver

browser = webdriver.Firefox()
browser.get('http://seleniumhq.org/')

However, it's not working. The process itself hangs until it times out.

I think that the problem is that instead of just launching normally whenever Selenium triggers Firefox it triggers it in safe mode:

enter image description here

Is there a way to disable that behavior?


Solution

  • Firefox 47 and selenium 2.53 don't play nicely together - there are compatibility issues:

    As a temporary workaround, downgrade to Firefox 46.


    Note that the fix into Firefox 47 was already made but not yet released. Which means that you can install the development version of Firefox as well.