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

78
Views
How do I select the web.whatsapp.com search bar?

I want to programmatically set focus on the web.whatsapp.com search bar:

enter image description here

I inspect this element in Chrome 's source code explorer, and I see this:

enter image description here

I right-click the element, then click "Copy->selector".

It provides: "#side > div.uwk68 > div > div"

So I tried this:

var inputElements = document.getElementsByClassName('#side > div.uwk68 > div > div');

It returns 0 elements.

How could I select this search bar?

Thank you very much!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I think you can use document.querySelector like

var element = document.querySelector("div._13NKt.copyable-text.selectable-text");

This is listed along with the other things you can use in this reference for the HTML DOM

https://www.w3schools.com/jsref/dom_obj_document.asp

about 4 years ago · Juan Pablo Isaza Report
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!