Invalid or unsupported WebDriver capabilities found ("app", "appArguments") with WinAPPDriver

See original GitHub issue

Environment (please complete the following information):

  • WebdriverIO version: latest
  • If WDIO Testrunner, running sync/async: sync
  • Node.js version: 14.16.0
  • NPM version: 6.4.11
  • Additional wdio packages used (if applicable): services: [‘winappdriver’],

Config of WebdriverIO

require('ts-node').register({ transpileOnly: true });

exports.config = {
    runner: "local",

    specs: ["./test/specs/*.ts"],
  
    maxInstances: 1,
  
    port: 4723,
    capabilities: [
      {
        app: "Microsoft.WindowsAlarms_8wekyb3d8bbwe!App",
        appArguments: '-noCloseConfirmationPopUp',
        "ms:experimental-webdriver": true,
        browserName: "",
      },
    ],
    logLevel: "trace",
    services: ["winappdriver"],
    framework: "jasmine",
    outputDir: ".\\reports",
    reporters: ["dot", ["junit", { outputDir: ".\\reports" }]],
  
    before() {
      //implicit wait for 5 seconds
      browser.setTimeout({ implicit: 5000 });
    },
  
    jasmineNodeOpts: {
      defaultTimeoutInterval: 30000,
      expectationResultHandler: function (passed, assertion) {
        /**
         * only take screenshot if assertion failed
         */
        if (passed) {
          return;
        }
  
        browser.getPageSource();
        browser.saveScreenshot(
          `.\\reports\\assertionError_${assertion.error.message}.png`
        );
      },
    }
}

Describe the bug Unable to launch a test with WebDriverIO V7 on a windows application , please see this error : Error: Invalid or unsupported WebDriver capabilities found ("app", "appArguments"). Ensure to only use valid W3C WebDriver capabilities (see https://w3c.github.io/webdriver/#capabilities).

To Reproduce Steps to reproduce the behavior:

Expected behavior The app and appArguments capabilities should be accepted by webdriverIO

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
licanhuacommented, Jun 14, 2021

@lacell75 Likely you have to add appium to your dependency or wait for WinAppDriver to fix the issue

1reaction
lacell75commented, Jun 14, 2021

Yes but I’m currently using the v7 for the web app( and I need this version for shadow support) and I will have to launch the tests with multi remote function (web app + Windows app) to test a WPF app

@lacell75 https://github.com/lacell75 one option would be to use WebdriverIO v6

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/webdriverio/webdriverio/issues/7007#issuecomment-860642850, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5XZJAQNKNVYHVLTBTTU33TSXYMPANCNFSM46UYXLXQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid or unsupported WebDriver capabilities found - Support
Hello, I installed the new appium desktop inspector and when I try to start the session I get an error at the appium...
Read more >
appium/appium - Gitter
I tried to write my own wdOpts, but I get Error: Invalid or unsupported WebDriver capabilities found ("appium.app"). Ensure to only use valid...
Read more >
Can you help me with the error I'm getting while running ...
Getting the following error: @wdio/runner: Error: Invalid or unsupported WebDriver capabilities found (“build”, “name”, “isRealMobile”, ...
Read more >
appium-windows-driver - npm
Either this capability or appTopLevelWindow must be provided on session startup. appium:appArguments, Application arguments string, for example /? . appium: ...
Read more >
appium_ispair.txt - GitHub
I got this error while trying to automate an hybrid app. ... solution: issue: I'm using appium and the ms WinAppDriver to ui...
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