1. A method for testing a graphical user interface (GUI), comprising: providing a pattern of a collection of generalised interface object types; searching an interface or a model of an interface for instances of collections of interface objects matching the pattern; and identifying a control provided by the interface represented by the collection of interface object types and its location in the interface hierarchy.