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

165
Views
NTLM in Cypress

I want to access a link that is protected with username and password through a windows authentication popup.

I read that this requires an NTLM plugin for Cypress. I want to access a form link https://etc.domain.com/dirlisting/notifications and here I want to login:

 it('loginpopup', () => {
    cy.ntlm(["https://etc.domain.com/dirlisting/notifications"], "Administrator", "password");
    cy.visit("https://etc.domain.com/dirlisting/notifications");
  })

I tried this code but received the following error: "Invalid host [https://etc.domain.com/dirlisting/notifications] in ntlmHosts, must be one of: 1) a hostname or FQDN, wildcards accepted. 2) hostname or FQDN with port, wildcards not accepted (localhost:8080 or www.google.com or *.acme.com are ok, https://www.google.com:443/search is not ok).

I tried also it without https.

I tried cy.visit('https://username:password@www.xyz.com') but it doesn't work.

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

0

Use cy.ntlm(["etc.domain.com"], "Administrator", "password");

instead of cy.ntlm(["https://etc.domain.com/dirlisting/notifications"], "Administrator", "password");

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!