tebeka / selenium

Selenium/Webdriver client for Go
MIT License
2.53k stars 409 forks source link

HTTP Proxy with Auth not being used #215

Open beastfy opened 4 years ago

beastfy commented 4 years ago

Hello, I have been trying to use proxies with user auth with chrome and no luck so far, my last attempt was using this format:

`httpproxy := selenium.Proxy{ Type: "manual", HTTP: "http://" + (streamproxysorted[2] + ":" + streamproxysorted[3] + "@" + streamproxysorted[0] + ":" + streamproxysorted[1]), //HTTPPort: httpport, }

        caps := selenium.Capabilities{
            "browserName": "chrome",
        }
        if desiredProxyType == "HTTP" {
            fmt.Println("proxy activated")
            //httpport, _ := strconv.Atoi(streamproxysorted[1])
            caps.AddProxy(httpproxy)

        }` 

It doesnt throw me any error ( I think ) but when I check ip, still no proxy being used.

pgshow commented 3 years ago

Hi, did u solve this problem?

ProDanceGrammer commented 1 year ago

up

ProDanceGrammer commented 1 year ago

Hi, did u solve this problem?

@pgshow did u solve it?

pgshow commented 1 year ago

Nope