So, I have the latest Selenium 2.0 Python bindings installed via pip (Python 2.7.2, Windows 7).
I wrote a small script to see if I could get it working:
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("http://www.google.com")
driver.close()
This will run, and open the command line. Then, a blank vanilla instance of Firefox 5.0 will launch, with "WebDriver" in the bottom right status bar. The command-line client will then terminate, and the Firefox window will persist. The specified URL does not open, and nor does the browser close afterwards. It just waits there.
I am however, behind a proxy when testing this, so I must admit I haven't tried it outside of the proxy. But, with this in mind, I thought to update my code with new profile information:
from selenium import webdriver
profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", "proxy.xx.xxx.xxx")
profile.set_preference("network.proxy.http_port", 3128)
profile.update_preferences()
driver = webdriver.Firefox(profile)
driver.get("http://www.google.com")
driver.close()
This was based on the issue found here: http://code.google.com/p/selenium/issues/detail?id=2061
Again, the same behaviour as before. Does anyone have some pointers on how I can get this to work?