Ritesh Gore
Ritesh Gore

Reputation: 49

How to enter data in the Windows Authentication pop up in Protractor?

I am writing E2E(Using Protractor) test cases for an Angular app. Whenever I hit the application URL, it asks me for Windows authentication and I am unable to enter the Username and Password in the Authentication popup. Is there any way to fill the pop-up form my test case file? Please suggest.

Upvotes: 2

Views: 1278

Answers (1)

AdityaReddy
AdityaReddy

Reputation: 3645

If it is basic HTTP Authentication that you are looking for - This when you see a windows pop-up when you manually open the url - You can avoid that by two ways

1.Change baseUrl = http://example.com TO baseUrl = http://username:[email protected]

  1. Or you can have a browser.get('http://username:[email protected]')

This will do the basic HTTP Authentication for you !!!

Upvotes: 4

Related Questions