Recently my chrome version has been updated from version 75 to Version 77.0.3865.120(64-bit). My program used to work with Version 75 and chrome driver related to 75 and now that my chrome browser has been updated to 77.0.3865.120(64-bit) i am getting below error message
**An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll
Additional information: invalid argument: entry 0 of 'firstMatch' is invalid
from invalid argument: unrecognized capability: chromeOptions**
Here is my code :
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.AddArguments("window-size=800,600");
chromeOptions.AddArgument("no-sandbox");
DesiredCapabilities capabilities = DesiredCapabilities.Chrome();
capabilities.SetCapability(ChromeOptions.Capability, chromeOptions);
using (IWebDriver driver = new ChromeDriver("local path to driver", chromeOptions)) -- error at this line