Welcome! Log In Create A New Profile

Advanced

WebDriver and Nginx

September 20, 2011 02:47PM
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", "127.0.0.1")
>>> 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?
Subject Author Posted

WebDriver and Nginx

ynasser September 20, 2011 02:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready