FlaUI icon indicating copy to clipboard operation
FlaUI copied to clipboard

Access exception question

Open viraptor opened this issue 5 months ago • 1 comments

Not really a bug, but the issue is not documented anywhere explicitly. I've got an app which can be inspected with UIA2 and administrator mode UIA3. But it's completely invisible to user mode UIA3. When I tried the hover mode in inspect, it popped up a message about the unauthorized access exception.

But I can't find any details about this behaviour in any docs. What is the "protected ui element"? Is there any msdn page you could point me at?

viraptor avatar Oct 23 '25 10:10 viraptor

Turns out related to isolation level and ui security. More context can be found here: https://learn.microsoft.com/en-us/dotnet/framework/ui-automation/ui-automation-security-overview

The workarounds are either to run the automation app as admin, or add the uiaccess permission to your app manifest and get a code signing certificate from a known CA.

viraptor avatar Oct 26 '25 00:10 viraptor