-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use Automation Peer on controls using Mahapps framework #4454
Comments
@alexandrefaure Sorry to here this, a sample would be helpful. Do you use still 2.4.10? |
Yep for sure we use the version 2.4.10. Here is a .zip with the light solution with a button in center of a window.
When it's not working, we cannot targeting the control anymore : Here are the different test cases :
Here is the .zip file with the solution used for this test. Hope that helps ! |
I can only reassure that the bug is there, because i was having the same problem not only with windows accessibility insights but with inspect.exe from microsoft and UIRecorder from WinAppDriver and FlaUInspect. Bug reproduction steps are:
Expected result:
Actual result:
Extra info: These all inspect tools are using the frompoint function from windows https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelement.frompoint?view=windowsdesktop-8.0 |
I can also confirm that the bug is there. |
I have a workaround for this issue, which is not a fix but a total workaround. An updated version of flauinspect. |
@noubar thanks for your comment: unfortunately we cannot apply your workaround so this issue with .Net 8.0, still open after 7 months, is really a problem for us... Maybe it is related to dotnet/wpf#8679? |
It looks like that it is related. |
Hi everyone,
We currently have a bug on our application which seems to be directly related to the .Net 8.0 upgrade.
We need to access to AutomationPeers of controls inside our app for our quality team. From the dev side, we use Accessibility Insight to verify that each control in the app have a correct/dedicated AutomationId.
Since we've upgraded to .Net 8.0 last week, we cannot find our controls anymore using Mahapps. When we remove Mahapps lib from our code, everything went fine and we can find our controls.
I can give you a test project with a simple button to test that if necessary.
Of course, we use the latest version of Mahapps.
Feel free to tell me if you need more information.
Thanks again for your help,
Cheers,
Alex
The text was updated successfully, but these errors were encountered: