I have this jquery code to press buttons for me, it will press it every second - some page just loads forever until that button appears. This code is successful:
(function($){
setInterval(function(){
$('.play-button').click();
}, 1000);
})(jQuery)
Now I want one step more: I want it press it only once. (still, this button only shows after a random long loading time.)