Skip to content

[Testing] Unable to Select Individual Picker Items in iOS and Catalyst Using Appium #28024

@HarishKumarSF4517

Description

@HarishKumarSF4517

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

Image
Image

Steps to Reproduce

  1. Launch the app on an iOS or Catalyst - 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions