C# Selenium+Chrome代理(验证用户密码)
selenium 本身来说是不支持验证用户密码的在各打博客中发现了2种方法 小弟我也是跋山涉水才找到解决办法:
第一种:
options.AddArguments("--proxy-server=http://user:password@yourProxyServer.com:8080");
我是没有测出什么效果来
第二种使用谷歌扩展:
什么?我问我扩展怎么来?当然是自己写了,做为程序员的标准吗!!
谷歌插件官方文档:https://developer.chrome.com/extensions/getstarted
创建:manifest.json 文件
{
"version": "1.0.0",
"manifest_version": 2,
"name":