javascript - Console script to click and submit on website -


so i'm trying make script in browser console opens website clicks on button. waits next page load. click different element wait next page load etc...

  done via browser-console! 

a plus make script runs these steps every 24h.

eg. leave script running -> open browser -> navigate website url -> run steps

this how far i've gotten:

window.onload = function(){ settimeout(function() {     document.queryselectorall("[href*='0401']")[0].click();   }, 4000); }; window.onload = function(){ settimeout(function() {   document.queryselectorall("[href*='0401']")[1].click(); },4000); }; window.onload = function(){ settimeout(function() {   document.queryselectorall("[href*='0401']")[1].click(); },4000); }; window.onload = function(){ settimeout(function() { document.queryselectorall("[type='checkbox']")[1].click(); },4000); }; window.onload = function(){ settimeout(function() { document.queryselectorall(".btn-primary")[2].click(); },4000); }; 

there 5 steps. each step works indidually. not together. if find solution greatful!


Comments