2 ms·
If you look at the JavaScript, you can see that it actually expects a keystroke for the Enter key. I'm not familiar with sending keystrokes in JavaScript (from
by jaredsohn 14y ago
If you look at the JavaScript, you can see that it actually expects a keystroke for the Enter key.
I'm not familiar with sending keystrokes in JavaScript (from some brief searching I think it is possible; I just don't know the best practice), but for something like this, you could just do it at the operating system level. A long time ago I automated an annoying user interface for a program we had to use at work by writing some vbscript that changes windows and does a combination of sendkeys and sleep.
Unfortunately, just sending keystrokes isn't very robust since it isn't reading what is going on in the UI and if something random happens (the site behaves other than expected, you touch a key / move the mouse, a scheduled program runs, etc) the script could get out of sync. Fortunately, the consequences of an error are so low here that such a solution would be good enough.