user12719777
user12719777

Reputation:

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?

Upvotes: 1

Views: 3935

Answers (2)

Hakan
Hakan

Reputation: 319

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

Upvotes: 0

Kishan Rathod
Kishan Rathod

Reputation: 83

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

Upvotes: 1

Related Questions