Python with Selenium -- using proxies?

Delta223

Junior Member
Joined
Mar 1, 2010
Messages
146
Reaction score
13
Guys, I'm having a tough time getting selenium to work with a proxy (both HTTP and SOCKS). Anyone else have this trouble and able to fix it?
 
Good info! I am also looking for a browser that shows a GUI so I can do partial automations as well.
 
What exactly is the problem? Are you getting timeouts? You have to be more specific.
 
With chromedriver I am encountering the following issue:

VYCYGm0


I am using an HTTP proxy in the above code. As noted, SOCKS also fails with the same error.
 
With chromedriver I am encountering the following issue:

VYCYGm0


I am using an HTTP proxy in the above code. As noted, SOCKS also fails with the same error.

I am no expert, but I will try to make sense (whatever little I can).

The error thrown is by urllib, not by selenium.
I think the localhost service (which is your selenium server?) at port 4444 is not responding as it should, resulting in this error.
I have never encountered a urllib error when using chrome with the latest chromedriver, so I am pretty sure it has to do with remote driver (which might be using the urllib to connect to the remote selenium service?)

Maybe you should switch to webdriver.Chrome(executable_path="file/path/to/latestchromedriver")

https://sites.google.com/a/chromium.org/chromedriver/downloads ---> Find latest chromedriver here
 
Back
Top