microsoft / WinAppDriver

Windows Application Driver
MIT License
3.66k stars 1.4k forks source link

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

Open licanhua opened 3 years ago

licanhua commented 3 years ago

Issue happens when WebDriverIO v7 directly connect with WinAppDriver. webdriverio is W3C WebDriver capabilities, and it doesn't support capability like 'app:' or appWorkingDir:. to support user to upgrade webdriverio from v6 to v7, winappdriver need to support capability prefix with ms: and remove ms: when dealing with the capability then user are able to set capability like { "ms:app": "app name"} in webdriverio v7, and WinAppDriver can consume it.

This issue is originally opened to webdriverio: https://github.com/webdriverio/webdriverio/issues/7007

jonthysell commented 3 months ago

I hit this blocker as I was trying to upgrade React Native Windows to use WebDriverIO v7, because of Component Governance alerts due to old insecure dependencies of WebDriverIO v6.

I'm trying to work around it now by staying on WebDriverIO v6 and just force bumping the deps.

But getting this functionality into WinAppDriver sounds like a potential security work under SFI.