Hello! How to use proxy in Selenium? I looked on the Internet, that's what I found:

FirefoxProfile profile = new FirefoxProfile (); Proxy proxy = new Proxy (); proxy.HttpProxy = "localhost:8080"; profile.SetProxyPreferences (proxy); IWebDriver driver = new FirefoxDriver (profile); 

But I get this error

enter image description here enter image description here

    1 answer 1

    Selenium disgustingly works with proxy.

    Because I see only 2 outputs:

    1. Use proxy for the whole PC
    2. Use proxy with PhantomJS driver / browser. There are no problems in setting up a proxy.