Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

HOWTO Get C# App to see all UI-Automation details like Inspect.exe

$
0
0

Please help,

I am trying to use UI-Automation, to see text and "Automation" information in other apps like the Windows SDK app called Inspect.exe. So far, I've gone down the path to ensure my C# app has a manifest file with uiAccess = "true", and digitally signed my app, and have it installed in "Program Files", as per UIA's requirements. But still, not all UIA information is revealed, like the AutomationElement's AutomationId.

The coding involved is so large, that there is simply not going to be a way to paste a code snippet, or even a whole project, to detail the issue, so rather than present a problem, is there a something well documented, to explain how to get a C# app to see all UI-Automation details like the Inspect.exe application.

The explanation should include the following:

1) The app must have a manifest with uiAccess = "true".
2) The app must be signed, and with a test certificate, with steps on how to create that certificate and get it trusted on a machine.
3) Explaantion of installing to Program Files so the uiAcess=true will work.
4) Code to read in all UI-Automation information like Inspect.exe does, with say IE11 browsing towww.google.com, to see all UI-Automation details on the google search prompt.
4.1) This should include getting:
4.1.1) The text in the search prompt.
4.1.2) The bounding rectangle coordinates/size of the search prompt.
4.1.3) The "UIA" AutomatioId and other key significant UI-Automation information that can be used to search UIA with to find the prompt (UIA's FindFirst).
4.1.4) The ability to see all parents of the search prompt likewise.

I have gotten down to 4.1.2, but the AutomationId (4.1.3) is not coming, which implies to me, either a BUG with UIA, and/or I've not down something like Inspect.exe, which can see the AutomationId.


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>