Skip to content

Set importantForAccessibility to yes on WebView #628

@ggtlvkma356

Description

@ggtlvkma356

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions