public void TestInitialize()
        {
            var proxy = new OpenQA.Selenium.Proxy
            {
                HttpProxy = "http://localhost:18882",
                SslProxy  = "http://localhost:18882",
                FtpProxy  = "http://localhost:18882"
            };
            var options = new ChromeOptions
            {
                Proxy = proxy
            };

            _driver = new ChromeDriver(Environment.CurrentDirectory, options);
        }
Beispiel #2
0
        public void TestInit()
        {
            var proxy = new OpenQA.Selenium.Proxy
            {
                HttpProxy = "http://localhost:18882",
                SslProxy  = "http://localhost:18882",
                FtpProxy  = "http://localhost:18882"
            };
            var options = new ChromeOptions
            {
                Proxy = proxy
            };

            _driver = new ChromeDriver(options);
        }