Setting a proxy for Chrome Driver in Selenium

前端 未结 3 1098
情歌与酒
情歌与酒 2020-12-03 11:05

I am using Selenium Webdriver using C# for Automation in Chrome browser. I need to check if my webpage is bloced in Some regions(some ip ranges). So I have to set a proxy in

3条回答
  •  遥遥无期
    2020-12-03 11:47

    If your proxy requires user log in, you can set the proxy with login user/password details as below:

    options.AddArguments("--proxy-server=http://user:password@yourProxyServer.com:8080");
    

提交回复
热议问题