gpt4 book ai didi

c# - 系统.TypeLoadException : Method 'Dispose' in type 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor'

转载 作者:行者123 更新时间:2023-11-30 14:05:44 24 4
gpt4 key购买 nike

我的项目停止工作。我有所有 nugets 和 appium 服务器的最新版本。哪里出了问题?我收到这样的错误:

留言:

OneTimeSetUp: System.TypeLoadException : Method 'Dispose' in type 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor' from assembly 'appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null' does not have an implementation.**

protected AppiumDriver<AppiumWebElement> driver = null;
private DesiredCapabilities dc = new DesiredCapabilities();

public Driver()
{
dc.SetCapability("reportDirectory", reportDirectory);
dc.SetCapability("reportFormat", reportFormat);
dc.SetCapability("testName", testName);
dc.SetCapability("deviceName", AppConfigReader.DEVICE_NAME);
dc.SetCapability("language", "en");
dc.SetCapability("locale", "UK");
dc.SetCapability("newCommandTimeout", 120);
//dc.SetCapability("automationName", "UiAutomator2");
dc.SetCapability(MobileCapabilityType.Udid, AppConfigReader.DEVICE_NAME);
dc.SetCapability(AndroidMobileCapabilityType.AppPackage, AppConfigReader.APPLICATION_NAME);
dc.SetCapability(AndroidMobileCapabilityType.AppActivity, "novacura.flow.client.android.SplashScreen");
driver = new AndroidDriver<AppiumWebElement>(new Uri(AppConfigReader.HOST), dc);
}

最佳答案

OneTimeSetUp: System.TypeLoadException: 程序集 'appium-dotnet-driver, Version=3.0.0.2, Culture=neutral, PublicKeyToken=null' 类型 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor' 中的方法 'Dispose'没有实现。*通过将 selenium NuGet 包降级到 3.11.2 得到解决

关于c# - 系统.TypeLoadException : Method 'Dispose' in type 'OpenQA.Selenium.Appium.Service.AppiumCommandExecutor' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54331237/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com