in reply to Automation with GUITest

PushButton("Next" or "Agree" or ...

This does not make sense. You will need to learn Perl. You have been told this already. You have shown no progress. This is not how programming works.