Attempting to configure specific preference values on a selenium 2.53.1 operated Firefox 45.0.1 using Python 3.4, such as deactivating JavaScript:
>>> from selenium import webdriver
>>> profile = webdriver.FirefoxProfile()
>>> profile.set_preference('javascript.enabled', False)
>>> driver = webdriver.Firefox(firefox_profile=profile)
Yet, this customization seems to be disregarded, as the about:config
displays
javascript.enabled true
and JavaScript functions continue to run normally. Despite the fact that about:config
reflects it as user-configured. What could be the issue?