0

I know there are so many threads regarding this but my issue is a bit different.

  • My Browswer version is 134.0.....
  • My ChromeDriver Version is 134.0...
  • and Chrome Version 135 is not available yet for downloading.

When I run my tests I get error message

System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 135
Current browser version is 134.0.6998.178 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated)

I downgraded ChromeDriver to 132 but still getting the same error like this version support only 135?

I use Selenium C#. I use WebDriver Manager (I don't want to hardcode path to chromedriver).

  • I cleared cache

  • deleted all chromedriver.exe files

  • Closed chromedriver.exe

  • Deleted bin folder in the project

  • Rebuild the project

  • Restarted PC several times

But nothing is working

1 Answer 1

2

As of Selenium 4.6, SeleniumManager was added and it automatically takes care of downloading and configuring the appropriate driver for you. So, you no longer need to use a DriverManager or specify the path, etc.

See the Configuration section of the page linked above for details on how to specify a particular version of a driver.

Sign up to request clarification or add additional context in comments.

2 Comments

I just commented the line //new DriverManager().SetUpDriver(new ChromeConfig()); and it worked.
Great. If this or any other answer was useful please upvote it. Once you find the answer to your question, please mark it as accepted so the question isn't left unanswered.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.