Can anybody explain, how can we write automated GUI tests?