Selenium webdriver Selenium Web驱动程序问题

Selenium webdriver Selenium Web驱动程序问题,selenium-webdriver,Selenium Webdriver,最近我的chrome版本已经从75版升级到77.0.3865.120版(64位)。我的程序以前使用的是版本75和与版本75相关的chrome驱动程序,现在我的chrome浏览器已更新为77.0.3865.120(64位),我收到下面的错误消息 **An unhandled exception of type 'System.InvalidOperationException' occurred in WebDriver.dll Additional information: invalid ar

最近我的chrome版本已经从75版升级到77.0.3865.120版(64位)。我的程序以前使用的是版本75和与版本75相关的chrome驱动程序,现在我的chrome浏览器已更新为77.0.3865.120(64位),我收到下面的错误消息

**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**
这是我的密码:

 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

如果您使用的是Google Chrome 77.00版本,需要下载Chromedriver77.00以下是链接:

欢迎来到SO。请花点时间阅读。它将帮助你设计出可靠的问题,希望能得到有用的答案。您是否已将chromedriver更新为v77-?因此请更新chrome驱动程序