Hello, from a Chrome extension I want to auto-click on (print) affirmation however this script partially works:
setTimeout(perform()
labels = doc.querySelectorAll('label');
if (labels[1].innerText == "Modello di stampa")
doc.getElementsByClassName("button affirm")[0].click on();
,500);
As a result of the web page refreshes repeatedly. May you assist me please? Thanks
Right here is the saved static web page (the positioning is restricted):
link
FYI, the script for the “report” click on (third small icon on the prime from proper to left) is similar however works properly and with out repetitions as a result of it hyperlinks to the subsequent web page and to not the identical web page:
setTimeout(perform()
labels = doc.querySelectorAll('label');
if (labels[1].innerText == "Modello di stampa")
doc.getElementsByClassName("experiences")[0].click on();
,2000);
Can I do one thing to keep away from repeating clicks within the first script? Thanks