I am using the following code for the proxy. however, when chrome starts, pop-up window will pop up and the program will be locked.
public async void StartDriver(string proxy)
{
var proxys = new Proxy();
ChromeDriverService chromeDriverService = ChromeDriverService.CreateDefaultService();
chromeDriverService.HideCommandPromptWindow = true;
ChromeOptions chromeOptions = new ChromeOptions();
bool flag = !string.IsNullOrEmpty(proxy);
if (flag)
{
proxys.Kind = ProxyKind.Manual;
proxys.IsAutoDetect = false;
proxys.SslProxy = proxy;
chromeOptions.Proxy = proxys;
}
driver = new ChromeDriver(chromeDriverService, chromeOptions, TimeSpan.FromMinutes(10));
await Task.Delay(2000);
}
I tried http or ssl the same...
StartDriver("88.55.66.77:8080");
Or
StartDriver("http://username:pass@88.55.66.77:8080");
I could not start a browser with a kind of proxy.
I want a code that automatically enters the username and password. I don't want autoitx3.dll.
is there a way to start a secure proxy?
Thank you.