dotnet / dotnet/maui

[Testing] EmptyView(null ItemsSource) elements Not Accessible via Automation on Windows Platform

Open
#28,022 0 comments 0 reactions 0 assignees View on GitHub
area-controls-collectionview area-testing partner/syncfusion platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

We are facing problem with the EmptyView(null ItemsSource) elements in .NET MAUI applications on Windows platform. These EmptyView elements are neither accessible nor interactable when using Appium for automation testing.

![Image](https://github.com/user-attachments/assets/100cc3fa-f2d2-442b-982f-67caf436d04c)

### Steps to Reproduce

- Run the following test case from the HostApp. (https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.Shared.Tests/Tests/CollectionView/CollectionViewUITests.EmptyView.cs)

- Set up Appium for Windows automation.

- Attempt to locate and interact with EmptyView(null ItemsSource) elements using Appium.

- Observe that Appium cannot access or interact with these elements.

Expected Behavior: Appium should be able to detect, interact with, and trigger EmptyView(null ItemsSource) elements in .NET MAUI applications on Windows platform, allowing for comprehensive automated testing of these UI elements.

Actual Behavior: Appium is unable to access or interact with EmptyView(null ItemsSource) elements. This prevents automated testing of functionality related to these menu items and creates a gap in our test coverage.

Impact: This issue significantly hampers our ability to perform thorough automated UI testing on Windows platform, potentially leading to reduced test coverage and increased manual testing efforts.

### Link to public reproduction project repository

_No response_

### Version with bug

9.0.40 SR4

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

_No response_

### Affected platforms

Windows

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with src/Controls/tests/TestCases.Shared.Tests/Tests/CollectionView/CollectionViewUITests.EmptyView.cs and run the test case from the HostApp on Windows with Appium configured. Trace how EmptyView with a null ItemsSource is exposed to automation, then verify that its elements can be located, interacted with, and trigger the expected behavior through Appium.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
accessibility, desktop, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.