Has anyone used Javascript to detect and click a button on a web page?

This might be worth a try: