Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
Puppeteer code can click on an element but Chrome Dev Tools can't

Using Puppeteer I am able to find an element and click it:

var element = page.$$('SelectorPhrase');
element[0].click();

My code works and the element is found and clicked. Yet, on the Dev Tools (F12 on Chrome) I tried to find the same element and click it:

let e = document.querySelectorAll('SelectorPhrase')[0];
e.click();

The element is found via the dev tools, but is not actually clicked. After I call the click function I get a response of undefined.

Why the Puppeteer is able to click the element, and for the very same element the dev tool can't?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda