Some automation testing framework like Appium and Selenuim uses Android UI
Automator Viewer tool to capture and process view hierarchy data.
Android UI Automator Viewer can only capture view hierarchy from focusable
windows.
Our DateAndTimePickerDialogs are added to window with FLAG_NOT_FOCUSABLE
flag. Due to this all DateAndTimePickerDialogs are not focusable and so
Android UI Automator Viewer not able to capture them in a view hierarchy.
Such dialogs are not accessible from automation testing frameworks
like Appium and Selenuim.
Changes Details:
To make DateAndTimePickerDialog views accessible from UI Automator Viewer,
need to make the dialogs focusable.
Added support to make DateAndTimePickerDialog focusable by using below ways:
Context:
Changes Details:
References:
UI Automator View hierarchy: Before:
After: