dimanche 6 septembre 2020

How to simulate click on the second element using javascript?

I'm very new on web developing. I want to ask on how Can I automatically Click the second href, that contains the word "login"

This is the code that I tried

document.querySelector('a[href*="/a/login.php?"]')[2].click();




Aucun commentaire:

Enregistrer un commentaire