U
U
Uncle Bogdan2021-05-28 22:46:09
C++ / C#
Uncle Bogdan, 2021-05-28 22:46:09

How to fix this joke with selenium?

It kind of gives out:

System.InvalidOperationException: "session not created: This version of ChromeDriver only supports Chrome version 85 (SessionNotCreated)"


I understand what the error is, but how can I fix this without installing the browser version below?

The code:
private void button3_Click(object sender, EventArgs e)
        {
            Browser = new ChromeDriver();
            Browser.Manage().Window.Maximize();
            Browser.Navigate().GoToUrl("https://kad.arbitr.ru/Card?number=%D0%9082-8283/2021");

            IWebElement element = Browser.FindElement(By.XPath("//*[@id='gr_case_partps']/table/tbody/tr/td[1]/div/ul/li/span/a"));
            MessageBox.Show(element.Text);
        }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav, 2021-05-28
@motkot

You need to use the correct version of the chrome driver, they are almost nailed to the chrome version. Here is a specific list: https://stackoverflow.com/questions/41133391/which...

V
Vasily Bannikov, 2021-05-28
@vabka

Just update the package with ChromeDriver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question