How to access the webview of a windows app for tests with Appium

  appium, mocha, webdriver-io, webview, windows

I am currently working on an app that have been developed with Cordova for Android and Windows platforms and my job is to automate tests for those apps with Appium. I managed to access the WebView of the hybrid app on the Android platform which allows me to use CSS selectors simply by adding "autoWebview":"true" in the desired capabilities and/or using getContexts() and switchContext, but for Windows it is not working, I can’t switch to the WebView context because commands related to "context" don’t seem to be recognized. Is there any other way to access the WebView of my Windows app in Appium or am I doing it wrong?

Source: Windows Questions