tree: 533b9f3fbc0f87fdc52d87f6a8eea878799248f5 [path history] [tgz]
  1. ax_client.cc
  2. ax_client.h
  3. ax_client.test-mojom
  4. ax_client_ia2.cc
  5. ax_client_ia2.h
  6. ax_client_impl.h
  7. ax_client_main.cc
  8. ax_client_uia.cc
  9. ax_client_uia.h
  10. BUILD.gn
  11. DEPS
  12. launcher.cc
  13. launcher.h
  14. OWNERS
  15. README.md
chrome/test/accessibility/ax_client/README.md

Accessibility Test Client

ax_client, a test-only out-of-process accessibility client for Windows, is used by browser tests to interact with a window's accessibility tree using either the UI Automation (UIA) or IAccessible2 (IA2) APIs. Tests can use it to evaluate scenarios where an accessibility tool (e.g., a screen reader) performs specific operations against the browser under test.

Overview

ax_client.exe is launched from a browser test via an ax_client::Launcher and driven via the interface defined in ax_client.test-mojom.

The launcher redirects the client‘s stdout and stderr to the parent test process’s respective streams so that LOG statements in the client are included in tests' output.

Extending

The ax_client::mojom::AxClient interface is meant to be extended with new functionality as needed by tests. Developers should not shy away from adding new methods.

Usage

Tests will typically derive from BrowserTestWithAxClient, which includes methods for launching and interacting with ax_client.