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

145
Views
how to handle http authentication selenium using javascript

I have problem in send the http authentication username and password. I can't use this pattern "https://username:password@url.com" because the website doesn't ask me about the authentication in entry page and after go to signIn page and enter email and press submit button, then I receive http authentication popup. I need to send username and password in this section. can anyone help me?

this is my code and after this I need to pass http authentication.

await driver.wait(until.elementLocated(emailBoxSelector, 10000));
let emailBox = await driver.findElement(emailBoxSelector);
let emailInput = await driver.wait(until.elementIsVisible(emailBox), 10000);
await emailInput.sendKeys("exampleEmail@gmail.com");

let signInBtnSelector = By.css('div.mt-6 button[data-testid="submit"]');
await driver.wait(until.elementLocated(signInBtnSelector, 10000));
let signInBtn = await driver.findElement(signInBtnSelector);
await driver.wait(until.elementIsVisible(signInBtn), 10000).click();```

in need to pass http authentication after this code.
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!