stevepryde/thirtyfour

Proxy doesn't work in Chrome.

robertpauson opened this issue · 1 comments

It's an issue that I first encountered when using a bash script for starting google-chrome with proxy, quite some time ago, and Firefox worked flawlessly.

This is my setup:


ChromeCapabilities {
    capabilities: {
        "browserName": String("chrome"),
        "proxy": Object {
            "proxyType": String("manual"),
            "httpProxy": String("http://USER:PASSWORD@IP:PORT"),
        },
    },
}

My test script goes to whatismyip.com
and it's ALWAYS the same, with every tweak and change I've tried

let mut caps = DesiredCapabilities::chrome();

caps.add_chrome_option("args", ["--proxy-server=http://ip:port"].as_ref())?;

let driver = WebDriver::new("http://localhost:9515", caps).await?;

This works fine for me.