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

137
Visualizações
click on element not working in chrome extension

I'm trying to click on chat items on the web telegram page. The thing is it used to work perfectly fine last week, today I wanted to edit some other section of the code when I discovered that the click() function doesn't work anymore. in my content.js I have :

function scrapChannelOnnewMSG(titleChannel,accountslist){
  const element = document.getElementsByClassName("chat-list custom-scroll");
  var scrollelem = element[0].children[0];
  // for all chat channels, do
  for (var i = 0; i < scrollelem.children.length; i++) {
   scrollelem.children[i].children[0].click();
          console.log("just clicked");
// do stuff with the resulting elemnts

Any idea why this is happening? I stress that it was working just fine before today.

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