How to Test macOS Applications

The macOS Convenience API provides functions for executing common user interface actions.

How Accessibility Support Works

Squish for Mac can leverage the accessibility features of macOS to access GUI components that are otherwise unsupported in Squish. This enables Squish to interact with pure SwiftUI interfaces, for example. It will detect windows created through SwiftUI and automatically use accessibility for testing. There is no need for manual configuration. Recording tests on Cocoa windows (NSWindow) and web views (WKWebView) continues to work as usual as well.

Accessibility support is built into Squish for Mac, therefore it is only available when testing native macOS applications. In case of undesired behavior accessibility support can be switched off in $SQUISH_PREFIX/etc/macwrapper.ini.