With the new UIautomator, you do not need to switch the driver to web browsing. It has built-in capabilities for identifying elements inside a webView.
Update your Android SDK once.
And also you can see elements inside webView on Android 6.0+ devices using UIAutomator.