question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DesiredCapabilities does not work any longer

See original GitHub issue

Hello, 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. image

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:open
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
dhapolapankajcommented, Jan 23, 2021

Hi @hassanuz Could you please prioritize this enhancement?

2reactions
mills-andrewcommented, Jul 30, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DesiredCapabilities does not work any longer · Issue #497
an issue when using an older version of Appium is that it is calling on an older supported version of Selenium (Appium is...
Read more >
Use of DesiredCapabilities has been deprecated
DesiredCapabilities will still work as before, so your tests should still function properly if you suppress/dismiss the warning. However, changing to the new ......
Read more >
How to fix Selenium DesiredCapabilities giving Error 'not ...
This solution seems to be working in my case. Anybody else facing this issue, all other above solutions are not working.
Read more >
Desired Capabilities in Selenium Testing With Examples
Desired Capabilities is a class used to declare a set of basic requirements such as combinations of browsers, operating systems, ...
Read more >
Desired Capabilities in Selenium Webdriver
DesiredCapabilities in Selenium helps set up automated parallel tests for environments on Grid. Read to understand Desired Capability ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found