Javascript not working on Safari console, but works in Chrome
I’m trying to simulate a click from console on the 3rd upload box. This code works in Chrome. I can browse my folder, but it’s not working in Safari. setTimeout(function() { // Sélectionner tous les éléments avec la classe 'uP74h0hWZUzbcqM1doHG IazVbeuKn6e3j5HwOjS7 newImgCreate' let elements = document.querySelectorAll('.uP74h0hWZUzbcqM1doHG.IazVbeuKn6e3j5HwOjS7.newImgCreate'); if (elements.length >= 3) { // Sélectionner le 3ème