Skip to content
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

UI Automation is not work in windows 11 #99

Open
kamb1mca opened this issue Dec 5, 2022 · 4 comments
Open

UI Automation is not work in windows 11 #99

kamb1mca opened this issue Dec 5, 2022 · 4 comments

Comments

@kamb1mca
Copy link

kamb1mca commented Dec 5, 2022

Several patterns are returning null. Automation elements are not returned such several issues are faced after upgrading to windows 11.
Can anyone guide us to upgrade automation correctly/expected manner?

@rahulkhanna1605
Copy link

This seems like a classic UIA issue and not remote operations. Could you confirm what issue you are facing and which language?

@tilleul
Copy link

tilleul commented Jan 29, 2023

I too have some problems with UIAutomation since updating to Win 11 22H2.

A simple code like Automation.AddAutomationFocusChangedEventHandler(OnFocusChangedHandler); does not exit and my program does not continue to the next line.

It worked fine before updating to 22H2 ... I need advice as this is used by many of our customers with disabilities. Thanks.

@3xtant
Copy link

3xtant commented Jan 20, 2024

The UI automation examples from different Microsoft blogs do not work for UI Automation (e.g. https://devblogs.microsoft.com/oldnewthing/20141013-00/?p=43863)
If the direction is to stop work with managed code, please state so, but this issue should be addressed in some way. Accessibility should be a priority for any piece of software, and a major one for an operating system. Please provide some answers

Windows 11
Version 22H2 (OS Build 23601.1000)

@3xtant
Copy link

3xtant commented Jan 24, 2024

After further investigation, the issue is that the System/User Promoted Notification Area does not exist anymore in Windows 11. There is no documentation anywhere about the change. The notification icons can be identified via their properties, but it used to be possible to speed up the search for elements by referring to the promoted notification area and now one has to run a full search (which takes several seconds) to identify the notification icons and decide whether it is needed to show the hidden ones.

Updated documentation and possible workarounds for the search would be really welcome. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants