You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
Using Mac OSX 10.6, Firefox 5.01, python bindings.
Not sure about selenium python bindings version, can't find it but I downloaded it
this week.
I set up a profile to use a proxy.
profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", "localhost")
profile.set_preference("network.proxy.http_port", 9638)
profile.set_preference("network.proxy.no_proxies_on", "")
profile.update_preferences()
driver = webdriver.Firefox(firefox_profile=profile)
The call to webdriver.Firefox fails with an error like this:
WebDriverException: Can't load the profile. Profile Dir : /var/folders/CW/CWhi40qkHJaRdfl7JNBS1++++TI/-Tmp-/tmpbs7gZo
The exception is being triggered because _wait_until_connectable is timing out in firefox_binary.
This is happening because the browser's proxy has not been configured right. Using
about:config, the Firefox browser tells me that I've change network.proxy.type and
network.proxy.http_port but not the other 2 necessary settings.
Why is the Firefox binary ignoring the other 2 settings?