Proxy Authentication with chrome driver C#


I want to use proxy (HTTP proxy with user name and password) with my chrome driver and it doesn’t seems to be working in my C# application.
It doesn’t use proxy when launching chrome browser.

Hope someone mighty help me





Sample Code:


string proxyUrl = String.Format(“http://{0}:{1}@{2}:{3}”, _proxy.textUsername, _proxy.textPassword,_proxy.textProxy, _proxy.numberProxyPort);

Proxy proxyObj = new Proxy()
IsAutoDetect = false,
Kind = ProxyKind.Manual,
HttpProxy = proxyUrl,
SslProxy = proxyUrl

options.AddArguments(“–proxy-server=”+ proxyUrl);

options.Proxy = proxyObj;
IWebDriver driver = new ChromeDriver(options);


Default Asked on April 25, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.