Utils to aid automated testing of UI components.