title: Python Selenium Webdriver - Changing proxy settings on the fly
body: <p>I'm currently successfully using the code below to use a proxy with the Selenium webdriver. Unfortunately, I can't seem to make it change the proxy settings without restarting the whole browser. I had hoped that simply updating the proxy settings, just like I did to set the proxy to start with, would change the proxy, but it doesn't seem to work. Any help on this subject would be greatly appreciated.</p>
  
  <pre><code>profile = webdriver.FirefoxProfile()
  profile.set_preference("network.proxy.type", 1)
  profile.set_preference("network.proxy.http", proxyAddress)
  profile.set_preference("network.proxy.http_port", proxyPort)
  profile.update_preferences()
  driver = webdriver.Firefox(firefox_profile=profile)
  </code></pre>