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

254
Views
Twitter Log In Using NodeJS Selenium-WebDriver

I'm trying to log in to twitter using Node JS Selenium Webdriver library.

I tried this code,

 await driver.get('https://twitter.com/i/flow/login');


 await driver.findElement(By.name(`text`)).sendKeys('test', Key.RETURN);
 await driver.findElement(By.name(`password`)).sendKeys('test', Key.RETURN);

But it's giving me the following error,

NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"*[name="input\[name\=\'text\'\]"]"}

But name = text does exist in login page,

enter image description here

What am I doing wrong ? :(

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!