[Testing] Unable to Select Individual Picker Items in iOS and Catalyst Using Appium
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 296
Description
### Description
Unable to selecting picker items in iOS and Catalyst. since, the picker items are contained within a XCUIElementTypePickerWheel, which is treated as a single accessible element. This structure does not allow us to directly access individual picker items using XPath also in our Appium framework.
For reference : https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/CollectionViewUITests.CollectionViewItemsUpdatingScrollMode.cs


### Steps to Reproduce
1. Launch the app on an iOS or Catalyst - [UpdatingScrollMode.zip](https://github.com/user-attachments/files/18958830/UpdatingScrollMode.zip)
2. Interact with a Picker component in the app.
3. Observe that the items inside the picker are grouped within a XCUIElementTypePickerWheel.
4. Try to select a specific item from the picker using XPath or direct selection.
### Expected Behavior
- The picker should expose individual items to be selected via XPath, Appium's click() method, or other interaction methods.
- Each item in the picker should be accessible and selectable separately.
### Actual Behavior
- The picker items are grouped within a single accessible XCUIElementTypePickerWheel.
- Attempts to access and interact with individual picker items via XPath fail.
- The picker wheel is treated as a single element, and there is no way to access specific items directly.
### 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
macOS, iOS
### Affected platform versions
_No response_
### Did you find any workaround?
_No response_
### Relevant log output
```shell
```
Contributor guide
Research direction
Start by running the attached UpdatingScrollMode.zip reproduction on iOS or Catalyst and review the referenced CollectionViewUITests.CollectionViewItemsUpdatingScrollMode.cs test. Inspect the accessibility hierarchy around the picker and compare the Appium/XPath behavior. Done means individual picker items are exposed and selectable through the documented interaction methods.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios, macos
- Domain
- accessibility, mobile-dev, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100