I am thinking to make an Autobuy script for flipcart but I am not able to click the buy now buttom via javascipt.
document.getElementsByClassName("_2AkmmA _2Npkh4 _2kuvG8 _7UHT_c")[0].click()
I know the above code should work fine but its returning undefined in javascript console.I am giving the code below please help!
<button class="_2AkmmA _2Npkh4 _2kuvG8 _7UHT_c" type="button">
<span class="_279WdV">
</span> <!-- -->BUY NOW
</button>
Aucun commentaire:
Enregistrer un commentaire