Search code examples
pythonseleniumwebdriversocks

Set proxy.socks.port selenium


I am used to setting http port like this:

profile.set_preference("network.proxy.http_port", "PORTNUMBER")

and that works . But now I need to connect with socks proxy and set the port, which it's not working

profile.set_preference("network.proxy.socks_port", "PORTNUMBER")

I couldn't find a reference in the docs and that's why I am asking here. Any ideas ? Is there a better way to do it ?

Thanks


Solution

  • See how the user is using socks_port.... in the below examples

    using-selenium-for-web-based-hostname-enumeration and gist.github.com