C#Selenium Chromedriver代理身份验证

C#Selenium Chromedriver代理身份验证,selenium,Selenium,Visual Studio 2019 C#,代理身份验证仍不工作。我用你:p@1.2.3.4:80 ... 很多方面。这对于浏览器自动化非常重要。互联网并没有正确的方法来解决这个问题。很抱歉对于stackoverflow规则:看起来你的帖子大部分是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代

Visual Studio 2019 C#,代理身份验证仍不工作。我用你:p@1.2.3.4:80 ... 很多方面。这对于浏览器自动化非常重要。互联网并没有正确的方法来解决这个问题。很抱歉对于stackoverflow规则:看起来你的帖子大部分是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息。看起来你的帖子大部分都是代码;请添加更多详细信息

using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
namespace WindowsFormsApp5
{
    public partial class Form1 : Form
    {
        Thread bnd;
        public Form1()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
            bnd = new Thread(hizlibasla);
            bnd.Start();
        }


        private void hizlibasla()
        {
            ChromeOptions proxy = new ChromeOptions();
            proxy.AddArgument("--proxy-server=14.131.0.1:8080");
        
          
            IWebDriver driver = new ChromeDriver(proxy);
            driver.Navigate().GoToUrl("http://x.com/bot/y.php");
           

            //driver.SwitchTo().Alert().SetAuthenticationCredentials("er1", "1");
            /*
            var alert = driver.SwitchTo().Alert();

            alert.SetAuthenticationCredentials("er1", "1");

            alert.Accept();*/


        }

        private void button2_Click(object sender, EventArgs e)
        {
           
            //driver.Quit();
        }
    }
}