DesiredCapabilities does not work any longer
See original GitHub issueHello, when I am trying to use the latest windriver the DesiredCapabilities are no longer supported. I used the calculator sample https://github.com/appium-boneyard/sample-code/blob/master/sample-code/examples/C%23/CalculatorTest/BasicScenarios.cs for the cross check , this does not work either.
These are the lines which cause the trouble.
// Launch the calculator app DesiredCapabilities appCapabilities = new DesiredCapabilities(); appCapabilities.SetCapability("app", "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"); appCapabilities.SetCapability("platformName", "Windows"); appCapabilities.SetCapability("deviceName", "WindowsPC"); CalculatorSession = new RemoteWebDriver(new Uri(WindowsApplicationDriverUrl), appCapabilities); Assert.IsNotNull(CalculatorSession); CalculatorSession.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(2));
When trying to specify the capabilities I always end at the browser based test. Could some please tell me what I am doing wrong ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
Hi @hassanuz Could you please prioritize this enhancement?
Hi, this needs to be addressed. Selenium 4.0 is on the horizon, WinAppDriver should be complient with W3C. Appium is moving forward, so should WinAppDriver.