Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

[Bug] [Android] Accessibility loses Picker content-desc/automation id

Open ACoolUsername opened this issue 6 years ago • 5 comments

Description The picker automation id/content-desc is present in accessibility initially, but after a few seconds it seems to disappear.

Steps to Reproduce

  1. Give a picker any automation id.
  2. Start the app and navigate to the picker.
  3. Using UI Automator Viewer, quickly take a device screenshot.
  4. Observe that the picker's content-desc is equal to the given id.
  5. Using UI Automatior Viewer, take a second device screenshot after waiting a few seconds.
  6. Observe that the picker's content-desc is blank.

Expected Behavior

The content-desc is always equal to the set automation id.

Actual Behavior

The content-desc appears to be lost/overwritten after several seconds.

Basic Information

  • Version with issue: 4.1.0.555618
  • Last known good version: 4.0.0.709238
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:
    • Android: Tested with 8.0

ACoolUsername avatar Oct 01 '19 17:10 ACoolUsername

@ACoolUsername is there a functional effect of this that we can test? This almost feels like it's an issue with UI Automation Viewer

If I use the layout inspector the Content Description never goes away.

But then if I use the UI Automation Viewer to screen shot the app then it disappears from the layout inspector as well

PureWeen avatar Oct 04 '19 19:10 PureWeen

We experienced this issue while running our Appium (ui-automator2-server)-based tests against our App after updating to Xamarin Forms 4.1. Prior to 4.1 the tests successfully retrieved the Picker element by Automation ID. After the 4.1. update (and no other changes) the tests started failing due to not finding the Picker Automation ID.

Maybe related to this commit - ccfd617?

kelly987654 avatar Oct 04 '19 21:10 kelly987654

We have a simular issue with the picker. It shows an automation Id different from the current selected item. Also seems to be related with the update of xamarin.forms.

attachments_b

larsduewel avatar Oct 17 '19 11:10 larsduewel

Hi @samhouts,

is it planned that this bug will be fixed in a future sprint? If yes, do u have a rough time estimation?

Kind regards Lars

larsduewel avatar Jan 27 '20 17:01 larsduewel

We are working through a number of accessibility issues now, and we're hoping this is one we're able to resolve in the next sprint. Thanks!

samhouts avatar Feb 24 '20 21:02 samhouts