Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda