Posts

Showing posts from April, 2018

C#, UIAutomation and Chrome, enabling via IAccessible2

C#, UIAutomation and Chrome, enabling via IAccessible2 In the course of my work implementing data readers over various applications, I came across an application that required Chrome. My application is written in C# and uses the interop UIAutomation library to do most of its screen reading. Chrome doesn't enable this interface by default, so I started pursuing options. One option is to use a command line switch (--force-renderer-accessibility) or to manually go into the chrome accessibility settings (chrome://accessibility/) and enable it there. Since this was being installed on end users systems, this didn't seem the right approach, as they are more for development. There was also a plugin that the application pushed on the user, which includes a launcher, and would void any command line switch we added. Looking at the accessibility page for chromium (  https://www.chromium.org/developers/design-documents/accessibility  ), I noticed that IAccessible2 was the interface o