“FirefoxOptions”不包含“UseLegacyImplementation”的定义

问题描述 投票:0回答:0

我在尝试废除我的 Selenium C# 自动化框架 .NET 时遇到了这些错误。 错误: “FirefoxOptions”不包含“UseLegacyImplementation”的定义 “EdgeOptions”不包含“UseInPrivateBrowsing”的定义

Selenium.Webdriver=4.8.2 VS=2019 版本 16.11.26 如果您需要更多信息,请告诉我 enter image description here

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包 期待:构建解决方案成功并希望执行测试脚本

c# selenium-firefoxdriver selenium-edgedriver
© www.soinside.com 2019 - 2024. All rights reserved.