Need AppleScript (and probably JavaScript) help
How do I write an AppleScript that tells safari to load a page, then looks for a hyperlink and clicks it?
I am trying to set up a large number of accounts in our domain on Google Apps for Education. I have created the accounts, but I need to log into each one, accept the ToS, then open the newest email in the inbox, and click a link in the email.
I know the CSV part is working because I am recycling code from the EnterpriseiOS site. I just need to know how to get the script to click the links I described above.
The links are not necessarily buttons. Sometimes they are simple a hrefs. Other times they are parts of a form. I am looking for a way to match the string (or part of it) of the link. Example: if you log off of gmail, and get back in, there is a link at the bottom that says "Sign in with a different account" - I'd like to be able to have the script click that link. Using Chrome's inspector, I see that it is an a id="account-chooser-link" href="some url" - How do I get the script to click that link?
Thanks in advance - AppleScript is not that hard to figure out, but JavaScript makes my brain hurt.
iMac, OS X Mavericks (10.9.4)