0
respostas

ChromeDrive não é instanciado

Quando tento instanciar o ChromeDrive recebo o seguinte erro: "The remote server returned an error: (403) CONNECTnotallowed."

Não chego nem a navegar nas paginas pois o erro ocorre ao tentar criar uma instancia do WebDriver

using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Remote;
using System;
using System.IO;
using System.Reflection;

namespace Test
{
    class Program
    {
        public static void Main(string[] args)
        {
            string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            IWebDriver wd = new ChromeDriver(path);
            wd.Navigate().GoToUrl("https://www.alura.com.br/");
            Console.ReadKey();
        }
    }
}

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software