'Error using Selenium Chrome Webdriver with C#

            options.AddArgument("--disable-gpu");
            
            
            driver = new ChromeDriver(options);
            driver.Navigate().GoToUrl("");
            string currentDay = DateTime.Today.DayOfWeek.ToString();
            System.Threading.Thread.Sleep(5000);
            switch(currentDay)
            {

Had a problem, where it doesn't hide the browser, what can I do?



Solution 1:[1]

Your chrome web-driver version need to match with your google chrome version which is install on your PC.

please use below link to download chromedriver.

chromedriver

Solution 2:[2]

First, check your Chrome version with following instructions:

  1. Click the three dots in the upper-right corner of the window.
  2. Hover your cursor over "Help."
  3. Click "About Google Chrome." The version of your Google Chrome browser will appear on the next window, toward the top of the screen.

Then download the matched chrome webdriver version. Via this link: https://chromedriver.chromium.org/downloads

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kishan Rathod
Solution 2 Hakan