Selenium C#: Test cannot be executed in the old Browser versions

79 views
Skip to first unread message

Vadivel Sekar

unread,
Jan 17, 2022, 12:36:09 AM1/17/22
to Selenium Users
Hi,

Issue: In Selenium C#, test script execution is failing in the old versions of browsers

Details:

Selenium WebDriver: V 4.1.0

Chrome                       : V 86.0.4240.75

Chrome Driver          : V 86.0.4240.22 (Release note says: Supports Chrome version 86)

Screenshots:

Error Message:

Message:
System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 86.0.4240.75 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated)
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

  Stack Trace:
WebDriver.UnpackAndThrowOnError(Response errorResponse)
WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
WebDriver.StartSession(ICapabilities desiredCapabilities)
WebDriver.ctor(ICommandExecutor executor, ICapabilities capabilities)
ChromiumDriver.ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout)
ChromeDriver.ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
ChromeDriver.ctor(ChromeOptions options)
ChromeDriver.ctor()

Chrome Driver Release Notes.png
Error Message.png
Selenium C# Test cannot be executed in the old Browser versions.docx
Chrome Driver Details.png
Chrome Installed Version.png
CodeBase1.png

Adrian

unread,
Jan 19, 2022, 4:27:16 PM1/19/22
to Selenium Users
That is to be expected.
You are using a newer version of ChromeDriver that does not support the older version of Chrome that you are running.
Reply all
Reply to author
Forward
0 new messages