Hello,
Can you help me with the following issue please ?
The following code generates the error “System.TypeLoadException : ‘Access is denied: ‘OpenQA.Selenium.Remote.DesiredCapabilities’.’”
Here is the code :
DriverOptions appiumOptions = new AppiumOptions();
//var appiumOptions = new AppiumOptions();
appiumOptions.AddAdditionalOption(MobileCapabilityType.PlatformName, "Android");
appiumOptions.AddAdditionalOption(MobileCapabilityType.PlatformVersion, "9");
appiumOptions.AddAdditionalOption(MobileCapabilityType.NewCommandTimeout, 60);
appiumOptions.AddAdditionalOption(MobileCapabilityType.DeviceName, "emulator-5554");
appiumOptions.AddAdditionalOption("automationName", "UiAutomator2");
appiumOptions.AddAdditionalOption("appPackage", appPackage);
appiumOptions.AddAdditionalOption("appActivity", appActivity);
var driver = new AndroidDriver<AndroidElement>(new Uri(host), appiumOptions);
Selenium version : 4.0.0-alpha05
I didn’t have this issue with the latest version of Selenium, but I have to use this one. I also use the appium server.
May you help me to resolve it ?
Thank you in advance for your answer