Automated clicking on HTML elements – Chee Wee’s blog
Posted by jpluimers on 2019/12/03
Magic from the JavaScript console: [WayBack] Automated clicking on HTML elements – Chee Wee’s blog: IT solutions for Singapore and companies worldwide.
This is the code he uses because [WayBack] getElementsByClassName returns an array ([WayBack] getElementById returns one reference or null, but many sites still develop without assigning an ID to their elements):
functionclickRefresh() {ImStillHere = document.getElementsByClassName("Button Success");if(ImStillHere.length > 0)ImStillHere[0].click();document.getElementsByClassName("refresh-widget")[0].click();}setInterval(clickRefresh, 1000);
via: [WayBack] function clickRefresh(){ … – CHUA Chee Wee – Google+
I like the approach. Now I need to find a way to automate this in some kind of plug-in.
–jeroen






Leave a comment