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()