If you still want to automate clicking on the Submit button, see this:
Hey Jo,
Learning a little JavaScript gets your foot in the door.
Learning a lot will let you do magic.
(I have yet to learn a lot.)
Here’s an example AppleScript for filling a form and clicking a radio button:
tell application "Safari"
tell front document
do JavaScript "document.forms['form']['clientAcctNum'].value = '" & "<some-text>" & "'"
do JavaScript "document.forms['form']['firstName'].value = '" & "<some-text>" & "'"
do JavaScript "document.forms['form']['middleInitial'…
The key is determining the HTML element ID for the button.
One way to do this is to open the page in Chrome, then right-click on the Submit button, and select "Inspect".
Maybe this topic will help with the downloading complete issue:
I have a macro that logs into a website and then proceeds to go thru multiple pages. It runs 2 reports and then has them downloaded this way. Right now, I put in some pauses to wait for the screen to paint and for activities to complete. But, sometimes, the pauses are ok and sometimes it takes longer. I would like to know if there is a command I can use that says “Wait until the next screen paints before proceeding” and “wait until the activity is completed”. The URL of these pages are dynam…