Discuții » Cerere de creare

Search and click button every interval.

§
Postat în: 26-07-2018
Editat în: 26-07-2018

Search and click button every interval.

Hello, I need a script that will be clicking button every 610 seconds.

Button html code: <button class="gold_button option" data-option="soulfight">Walka</button>

Script should look for data-attribute, not class name.

§
Postat în: 06-11-2018
setInterval(function() {
    let t = document.querySelector('button[data-option="soulfight"]');
    t && t.click();
}, 610 * 1e3);
§
Postat în: 21-11-2018

/ConfirmeIf/ setInterval(function(){ if (document.querySelector('your selector') !=null) {document.querySelector("your selector").click()} }, 610000);

§
Postat în: 21-11-2018

If you don't know how get the selector. right click in your element►Inspecter then right clique in the element. you will find copy SELECTOR

§
Postat în: 21-11-2018

Postează un raspuns

Autentifică-te pentru a posta un răspuns.