问题描述
我已经在本地机器上设置了 selenium 网格并尝试在节点上运行我的 selenium C#、specflow 测试。 将我的 chrome 驱动程序从 89 升级到 91 版本。我的 .proj 文件有更新版本 当我运行测试时出现错误
System.AggregateException : One or more errors occurred. (session not created: This version of ChromeDriver only supports Chrome version 89
Current browser version is 91.0.4472.77 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
虽然我在没有网格的同一台机器上执行测试 locallay,但我的测试运行良好。
ChromeOptions option = New ChromeOptions();
option.PlatformName = platformName;
option.AddAdditionalCapability("platform",platform,true);
option.AddArgument("no-sandBox");
driver = new RemoteWebDriver(new Uri(hubUrl),option.ToCapabilities(),TimeSpan.FromSeconds(waitTime));
请帮忙
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)