我在尝试废除我的 Selenium C# 自动化框架 .NET 时遇到了这些错误。 错误: “FirefoxOptions”不包含“UseLegacyImplementation”的定义 “EdgeOptions”不包含“UseInPrivateBrowsing”的定义
C:\Users\Username\Source\Repos dept-test-automation\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\BrowserOptions.cs(247,17,247,40): error CS0117: 'FirefoxOptions' 不包含定义对于 'UseLegacyImplementation' 1>C:\Users\Username\Source\Repos dept-test-automation\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\BrowserOptions.cs(265,17,265,37): error CS0117: 'EdgeOptions' 不包含“UseInPrivateBrowsing”的定义 1> 完成构建项目“Microsoft.Dynamics365.UIAutomation.Browser.csproj”——失败。
Tried=升级VS,相关nuget包 期待:构建解决方案成功并希望执行测试脚本