Chciałbym zrobic skrypt zeby klikało mi w przedmioty co 5sekund

przykladowy przedmiot

przedmiotow jest duuuzo
chcialbym ustalac jego nazwe i uruchamiać skrypt aby mi to klikalo ;d
getbyid ani name, class nie dziala ;d
setInterval('document.getElementsByName("StatTrak Bayonet | Rust Coat (Well-Worn)")[0].click()',2000)
setInterval('document.getElementByClass("StatTrak Bayonet | Rust Coat (Well-Worn)").onclick()',1000)
var el = document.querySelector("data-name"=="AK-47 | Blue Laminate (Field-Tested)"); console.log(el);