Followed instructions but still gettting System.InvalidOperationException: 'session not created: This version of ChromeDriver only supports Chrome version 85

81 views
Skip to first unread message

David Wysocki

unread,
Jul 11, 2023, 8:31:46 PM7/11/23
to ChromeDriver Users
Hi,

I am trying to use Selenium for the first time using ChromeDriver. 

I followed all the instructions on the version compatibility page.

Here is the URL I used to download Chromedriver.


I have chromedriver.exe in a subdirectory of my download folder.

Here is the sample testing I am trying to run

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;

namespace SeleniumDocs.GettingStarted
{
    [TestClass]
    public class FirstScriptTest
    {

        [TestMethod]
        public void ChromeSession()
        {
            IWebDriver driver = new ChromeDriver();

            driver.Navigate().GoToUrl("https://www.selenium.dev/selenium/web/web-form.html");

            var title = driver.Title;
            Assert.AreEqual("Web form", title);

            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromMilliseconds(500);

            var textBox = driver.FindElement(By.Name("my-text"));
            var submitButton = driver.FindElement(By.TagName("button"));

            textBox.SendKeys("Selenium");
            submitButton.Click();

            var message = driver.FindElement(By.Id("message"));
            var value = message.Text;
            Assert.AreEqual("Received!", value);

            driver.Quit();
        }
    }
}
Screenshot 2023-07-11 202943.png

David Wysocki

unread,
Jul 12, 2023, 8:26:11 PM7/12/23
to ChromeDriver Users
Any suggestions to resolve this issue would be greatly appreciated. I am running Windows 10 pro edition.

I have tried all the solutions I have found. All posts say essentially the same thing. There is a compatibility issue between the version of the chrome I have installed and the chromedriver.exe

I should have the correct version of Chromedriver but still no luck.

Thanks in advance.

Reply all
Reply to author
Forward
0 new messages