You would need to use the “autoWebview”: true capability.
It will only work, however, if the application under test was signed with a development certificate (as opposed to ‘release’ certificate, which would ‘lock’ the app, rendering the elements inaccessible).