Invalid or unsupported WebDriver capabilities found ("app", "appArguments") with WinAPPDriver
See original GitHub issueEnvironment (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:
- Install this project and update WebdriverIO : https://github.com/licanhua/wdio-winappdriver-example
- npm run test
Expected behavior
The app and appArguments capabilities should be accepted by webdriverIO
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lacell75 Likely you have to add appium to your dependency or wait for WinAppDriver to fix the issue
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