Description
I need some help with understanding why I am not able to interact with these elements that show up within the tree command in app.Repl().
To set the scenario this is a MAUI app issue only and this does work in a Xamarin app as expected. There have been some updates done by the syncfusion team to make all elements on a SfPicker visible to accessibility. When I use the "tree" command Xamarin.UITest app.Repl() I see the following code:
[Syncfusion_Maui_Core_Internals_WindowOverlayStack > ... > Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "Month", label: "Month"
[Microsoft_Maui_Platform_MauiScrollView]
[Microsoft_Maui_Platform_ContentView > Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_PlatformGraphicsViewExt]
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "01", label: "01"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "02", label: "02"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "03", label: "03"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "04", label: "04"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "05", label: "05"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "06", label: "06"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "07", label: "07"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "08", label: "08"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "09", label: "09"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "10", label: "10"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "11", label: "11"
[Syncfusion_Maui_Core_Platform_CustomAccessibilityElement] id: "12", label: "12"
[Syncfusion_Maui_Core_Platform_PlatformGraphicsViewExt]
However when I do the command of:
>>> app.Flash("Month")
I get the results of:
Flashing query for Marked("Month") gave 0 results.
[
]
This does not apply to these elements they all work as expected:
[Syncfusion_Maui_Core_Platform_LayoutViewExt] id: "DatePicker HeaderView", label: "Date Of Birth"
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Microsoft_Maui_Platform_LayoutView > Syncfusion_Maui_Core_Platform_LayoutViewExt] id: "DatePicker Ok", label: "Done"
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Microsoft_Maui_Platform_LayoutView > Syncfusion_Maui_Core_Platform_LayoutViewExt] id: "DatePicker Cancel", label: "Clear"
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Microsoft_Maui_Platform_LayoutView > Syncfusion_Maui_Core_Platform_LayoutViewExt] id: "DatePicker Ok", label: "Done"
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_NativePlatformGraphicsView]
[Syncfusion_Maui_Core_Platform_LayoutViewExt]
What I am hoping for is maybe some ideas as to why this is happening and if there is a way to workaround this.
Thank you for your help in advance!
Here is a screenshot for your reference: