Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

269
Vistas
Click Next Button from Chrome Console Using Javascript

I am trying to click on button from Chrome console

<a class="toolTip ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" href="#" role="button" aria-label="next page" data-hasqtip="211" oldtitle="next page" title="" aria-describedby="qtip-211">
<span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e"></span>
<span class="ui-button-text"></span></a>

enter image description here

i have tried

document.querySelector("#results > div.results_navigation.top_results_navigation.displayButtons > div.results_pager.ui-widget-content > div.arrow_container > a:nth-child(4)").Click(); 

But it does not work

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Js functions are case sensitive and you are using Click instead of click. Also your html and js code not match. So...

//check if btn was clicked
document.querySelector(".next_page").onclick = function() {
  // indicate that btn was clicked
  this.innerText = 'clicked';
  // set back the text after half a second
  setTimeout(() => document.querySelector(".next_page").innerText = 'button', 500);
};

// click the button every second
setInterval(() => document.querySelector(".next_page").click(), 1000);
<a class="next_page" href="#" role="button" aria-label="next page" data-hasqtip="211" oldtitle="next page" title="" aria-describedby="qtip-211">
  <span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e"></span>
  <span class="ui-button-text">button</span></a>

about 4 years ago · Juan Pablo Isaza Denunciar

0

If the click handlers are added by jQuery, often the native click() method on the HTMLElement will not trigger the jQuery handlers. You can use jQuery to trigger the click and it should trigger the handlers bound with jQuery.

$('#results > div.top_results_navigation > div.results_pager a[aria-label="next page"]').trigger('click'); // or .click() even
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda