I am trying to create a browser bookmark that will open a link with the id:
window.getElementById('updateOk').click()
followed by opening a small window with another button:
document.getElementsByClassName('rmit-save-details btn btn-inline right btn-green')[0].click();
How can I combine these two actions to work in one click in Chrome browser? I know that the second script needs to wait for some time (maybe 0.5 seconds) and I have tried using the setTimeout function, but I just can't get it to work... Nothing happens after clicking. When I use the bookmark with just one JavaScript script, it works fine.
Any help would be greatly appreciated!