The WebView is marked as NAF in the UI hierarchy by UiAutomator. The likely reason is because importantForAccessibility defaults to auto, and because the pdf is loaded dynamically, the framework decides to set it to no.
UiAutomator cannot reliably select the WebView by resource ID because of this. Currently the workaround is selecting using class name instead, but even without that problem, it is probably better to set it to yes anyway.
The WebView is marked as NAF in the UI hierarchy by UiAutomator. The likely reason is because
importantForAccessibilitydefaults toauto, and because the pdf is loaded dynamically, the framework decides to set it tono.UiAutomator cannot reliably select the WebView by resource ID because of this. Currently the workaround is selecting using class name instead, but even without that problem, it is probably better to set it to
yesanyway.