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

131
Views
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
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!