Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

147
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda