You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Since Xamarin.Forms version 5.0.0.2478 and newer, the UI Automator Viewer or any other similar app doesn't show the "AutomationId" (Content desc) the second time you request it. To make it work again, you need to reset the app.
Steps to Reproduce
Create a project
Add Xamarin.Forms nuget version 5.0.0.2478
Add a label with a Automation Id
Request for UI hierarchy with UI Automator Viewer or any other similar app two times
Expected Behavior
Automation Ids are available anytime
Actual Behavior
Automation Ids doesn't show up the second time and every other time
Basic Information
Version with issue: 5.0.0.2478 and newer version
Last known good version: 5.0.0.2401
Screenshots
First time
Second time
Code
The text was updated successfully, but these errors were encountered:
hey @gab5890, a PR (#15436) that seems related has been merged, would you be able to grab the NuGet as described here and let us know if this fixes this issue? That will greatly speed up the review process.
Besides verifying if this particular issue is fixed also be sure to check other scenarios in the same area to make sure that this fix doesn't accidentally has side-effects 🙂
Hi, @jfversluis, I don't see how #15436 can fix the problem.
It is modifying the viewIdResourceName, which I believe changes what will be displayed in resource-id (I'm not entirely sure why package name is included here as well, it makes automation more difficult): info.ViewIdResourceName = $"{host.Context.PackageName}:id/{element.AutomationId}";
The comment next to this line in the commit mentions that this is what is used by Appium and other automation frameworks, but typically I think most automation frameworks use the AutomationId which is actually mapped to content-desc, not resource-id.
Description
Since Xamarin.Forms version 5.0.0.2478 and newer, the UI Automator Viewer or any other similar app doesn't show the "AutomationId" (Content desc) the second time you request it. To make it work again, you need to reset the app.
Steps to Reproduce
Create a project
Add Xamarin.Forms nuget version 5.0.0.2478
Add a label with a Automation Id
Request for UI hierarchy with UI Automator Viewer or any other similar app two times
Expected Behavior
Automation Ids are available anytime
Actual Behavior
Automation Ids doesn't show up the second time and every other time
Basic Information
Screenshots
First time
Second time
Code
The text was updated successfully, but these errors were encountered: