So basically i'm trying to automate filling some web forms. Each row has a button that opens a sub-menu (and i haven't found a way to focus the button with keypresses) so i'm trying to either focus the button, or call the on-click function that the button has, but none of the have worked.
i've tried the following code:
function ExecuteScript() { document.getElementById("btn-0").focus();}
or
function ExecuteScript() { AssignValue(0); }
AssignValue(0) is the fuction that the button calls. Also, each button has a different id, such as btn-1, btn-2 and so on (same for the fuction, AssignValue(1), AssignValue(2)...)
I'm not a web developer so i have no idea why this doesn't work, as executing the code on the web console does work.