WebDriver and Nginx

ynasser nginx-forum at nginx.us
Tue Sep 20 18:47:26 UTC 2011

Has anyone tried using nginx and webdriver together? Before I used nginx
as a reverse proxy, I never had any problems, but now I can't get the
browser being controlled by webdriver to get webpages.

An example from the python shell: 

>>> import selenium
>>> from selenium import webdriver
>>> profile = webdriver.FirefoxProfile()
>>> profile.set_preference("network.proxy.type", 1)
>>> profile.set_preference("network.proxy.http", "")
>>> profile.set_preference("network.proxy.http_port", "80")
>>> driver = webdriver.Firefox(firefox_profile=profile)
>>> driver.get("http://www.google.com") 

And then nothing happens.

Since it works when nginx isn't running, I'm guessing the problem is
from the nginx side. Has anyone experienced something similar?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,215454,215454#msg-215454

More information about the nginx mailing list