0

I updated Selenium in Visual Studio to the latest version (Selenium 4) and noticed WinAppDriver is not compatible with the latest Selenium throwing errors. Aimed to replace DesiredCapabilities by Options but still getting error on WindowsElement . I was wondering if anyone can help me to fix the code and get it working.

The code I have in Visual Studio:

Process.Start(@WinDriver);
AppiumOptions appiumOptions = new AppiumOptions();
appiumOptions.AddAdditionalCapability("app", "Root");
appiumOptions.AddAdditionalCapability("deviceName", "WindowsPC");
var session = new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), 
appiumOptions);

and this is the error message VS is displaying:

enter image description here

Appium.Weddriver is on version 4.3.2

and

Windows.WebDriver is on 4.5

Thanks,

0 Answers0