Foundation of automated GUI tests