I don't want to go down any blind alleys so if someone can just tell me if Javascript (or maybe Python) is the right tool for what I'm trying to do (or suggest another) I would appreciate it.

I would like to automate the following: I log onto a web site and click a button to search for assignments. If no assignments are found I want to wait a period of time and search again. However, if assignments are found I want to select one of the available assignments and start searching again for additional assignments.

Thanks, Ray