Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

343
Views
¿Por qué no hay una acción al hacer clic en el botón del corazón usando javascript?

Estoy tratando de hacer clic en el botón del corazón en Instagram dm usando javascript.

este es mi codigo

 var elem = document.getElementsByClassName("wpO6b").length - 1; var heartButton = document.getElementsByClassName("wpO6b")[elem]; heartButton.click();

Y este es el código del botón del corazón.

 <button class="wpO6b " type="button"> <div class="QBdPU "> <svg aria-label="Like" class="_8-yf5 " color="#262626" fill="#262626" height="24" role="img" viewBox="0 0 48 48" width="24">

Una imagen de lo que sucede cada vez que ejecuto mi código, en realidad no pasa nada y no envía el emoji del botón. Ayudame por favor

El índice de botones

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!